cancel
Showing results for 
Search instead for 
Did you mean: 

How to open the server log file that displays messages of System.out.print

Former Member
0 Kudos

Hi,

I am working on a j2ee project. How can we access the default log file? I have put many System.out.println(..) method in different classes in order to get the program flow and to track the origin of the error.

I opened the a log file named "defaultTrace.0.trc" in usr\sap\J2E\JC00\j2ee\cluster\server0\log installation directory. Although it shows the ecxeptions, It is not showing the messages that i have written to console with the help of System.out.println(..) method.

Can anybody tell me the location of the log file where i can find my messages sent through System.out.println(..) function?

Regards,

Sudheesh...

Accepted Solutions (0)

Answers (1)

Answers (1)

Benny
Product and Topic Expert
Product and Topic Expert
0 Kudos

System.out.println goes to console, which is not a file... This whole thing is much easier if you use standard logging:

http://help.sap.com/saphelp_nw04/helpdata/en/d2/5c830ca67fd842b2e87b0c341c64cd/frameset.htm