Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Liza Boa
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
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!
***
Liza
 
ernest fakudze
Ranch Hand
Posts: 216
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
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??
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic