File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Logging in tomcat-3.2.3 / System.out.println() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Logging in tomcat-3.2.3 / System.out.println()" Watch "Logging in tomcat-3.2.3 / System.out.println()" New topic

Logging in tomcat-3.2.3 / System.out.println()

Liza Boa

Joined: Aug 16, 2001
Posts: 23
I would like to know how to make appear my System.out.println() call from the servlet in the [tomcat]/logs/servlet log (or anywhere else).
Thanks for your hints!
ernest fakudze
Ranch Hand

Joined: Aug 27, 2001
Posts: 216
You need this for debugging purposes right?
When I call System.out.pritnln() in any Java class, including servlets, I see it in the Tomcat Window and this is enough for me. If you startup Tomcat from the DOS terminal you will see this happening. What happens is that the DOS terminal launches a new Tomcat window and you can watch this new window to see things happening as you interact with your jsps or Java classes and this is also where System.out.pritnln() messages are printed. Would this do for your case?? I figure all you want to see are messages which are printed out on the console while your interact with your servlets/Jav classes??

In a time of drastic change it is the learners who inherit the future. The learned usually find themselves equipped to live in a world that no longer exists.<br />Eric Hoffer
I agree. Here's the link:
subject: Logging in tomcat-3.2.3 / System.out.println()
It's not a secret anymore!