cancel
Showing results for 
Search instead for 
Did you mean: 

Logging

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

pravesh_verma
Active Contributor
0 Kudos

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.

Answers (0)