Forums Register Login

Where to look System.out.println output?

+Pie Number of slices to send: Send
Hi,
I am running Tomcat 4.0. In my servlets, i printout few lines to debug using System.out.println(). Where can see these printings? In 3.x version, the printings can be seen from regular console, which i use to start Tomcat. Can somebody help me out?
Regards,
+Pie Number of slices to send: Send
There is a directory named "logs" in CATALINA_HOME directory.

Look in the catalina.out file and catalina_access.log

One is for System.out.println()'s and one is for the error stack trace.
+Pie Number of slices to send: Send
I'm against the use of System.out's etc in web apps since they are handled in a non-standard way between containers. Personally I always use an explicit logging mechanism. Although I haven't used it yet, Log4J is meant to be a handy thing.

Dave.
There is no beard big enough to make me comfortable enough with my masculinity to wear pink. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 496 times.
Similar Threads
where can i download tomcat from ???
Found a Typo in K&B SCJP5...but where to post it?
Stefanov's OO JavaScript Book arrived with more than 50 final pages missing!
where is servlet System.out output?
Where can I see my System.out.println in Apache Tomcat 5.5.9 Server
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 01:07:38.