on 03-13-2006 11:35 AM
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!
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you!
Your information solved my problem...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.