cancel
Showing results for 
Search instead for 
Did you mean: 

WAS Logging

Former Member
0 Kudos

Hi,

where can I find the logging output of an ejb call or a WebApp, when using a System.out.println()? Also I am woundering where the stack traces of an exception get logged to.

Thank you!

Accepted Solutions (1)

Accepted Solutions (1)

pravesh_verma
Active Contributor
0 Kudos

Hi Chris,

If you want to use the defaultTrace.trc file for logging then just write the statement:

<b>System.err.println("This is the error in defaultTrace.0.trc file");,</b> instead of System.out.Println().

Just include this line in the code. You can view the line in defaultTrace.trc file. Similarly you can write anything you want in this statement.

For eg:

<b>System.err.println("Value==" +value);</b>

This will print the value in the defaultTrace.0.trc file

You can locate this trace file from the following server location:

<b><Server>:\usr\sap\A06<System_ID>\JC70<Instance_ID>\j2ee\cluster\server0\log</b>

or go to portal and visit the following path:

<b>Sys admin->support->portal runtime->log viewer</b>

I hope this solves your problem. If any more clarification required then please revert back.

Regards

Pravesh

PS: Please consider rewarding points if helpful and solved.

Answers (2)

Answers (2)

Former Member
0 Kudos

Thank you!

Your information solved my problem...

Former Member
0 Kudos

Hi Chris,

by default, all of those should be logged in the defaultTrace.trc file located in the \usr\sap\<SID>\JC<instance_number>\j2ee\cluster\server0\log directory.