tomcat logging

D

Don

Hi,

I'm writing a JSP application hosted by Tomcat. Currently, all my
System.out messages are logged in \logs\stdout.log, but I would like
to store them in a separate file.

I tried adding:

<Logger className="org.apache.catalina.logger.SystemOutLogger />

to server.xml, in the hope that this would store the application's
System.out messages in logs\catalina.out, but it didn't appear to
work. Please send any suggestions to domurtag_AT_cs.tcd.ie

Thanks in advance,
- Dónal
 
R

Robert Klemme

David Rabinowitz said:
I strongly recommend you to check log4j
(http://logging.apache.org/log4j) and wrap it with some custom tag.

IMHO not needed, this should work:

<% log( "message" ); %>

Although I agree that it's more appropriate to put this into a custom tag.
This could then look like:

<mytags:log>message</mytags:log>

Regards

robert
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,270
Latest member
TopCryptoTwitterChannels_

Latest Threads

Top