C.F. Scheidecker Antunes wrote:
Hello all,
If I have a System.out.Println() statement on my Struts code where would
that be written to?
I would like to write stuff to either the console or the Tomcat log text
file. How can I achieve that?
System.out.println() does not seem to be doing anything.
I want to know what it is going on at run time to make it easier to
debug stuff.
System.out.println writes to standard output. That will go to the console
by default. Depending on your application server, stdout may be redirected
to a file -- for example, logs/catalina.out.
To log to the Tomcat logs, you can use the standard Servlet API logging
functions. Or you could use Log4j / Java Logging / Jakarta Commons Logging
if you want more control over your log output. But if all you want is quick
debugging output, System.out.println should be fine.
L.
--
Laurie, Open Source advocate, Java geek and novice blogger:
http://www.holoweb.net/laurie
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]