on 04-18-2006 11:18 AM
Hi all,
How can I view the J2EE servers logs?
I found the Visual Administrator and Log Viewer, however this application seems very complex.
For instance where do simple System.out.println() statements go?
Thanks!
Regards,
Harm de Laat
Hi Harm de Laat,
I have answered this question in the following tread:
/message/1346662#1346662 [original link is broken]
Anyways for you convinience I am copying it here:
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 <b>System.out.Println().</b>
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:
Sys admin->support->portal runtime->log viewer
I hope this should solves your problem.
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.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.