Thanks for the info. Does this mean that if I don't configure the logging and an exception occurs in Tomcat, or, in an application that it will not be logged at all? Or, does it go to catalina.out by default? If it goes to catalina.out, that's fine, I just want to make sure that while I'm developing applications and/or configuring the server, if an exception occurs (either in Tomcat itself or in an application that I write), it gets logged to a file so that I can diagnose the problem. I'm surprised that even the access logs are turned off by default.

Jon

----- Original Message ----- From: "Shapira, Yoav" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, September 01, 2004 11:50 AM
Subject: RE: How to configure logs in Tomcat 5.5?




Hi, Loggers are gone: your server.xml <Logger> element is invalid and should be removed.

For configuring commons-logging with Tomcat, see
http://jakarta.apache.org/tomcat/faq/misc.html#commonsLoggingLog4j.  If
you're unfamiliar with commons-logging or want to learn more about it,
check out the user guide at
http://jakarta.apache.org/commons/logging/guide.html.

Note that for people who don't care much about logging,
System.out/System.err still behave as before, and the ServletContext#log
method works without any special configuration.

Yoav Shapira
Millennium Research Informatics


-----Original Message-----
From: Jonathan Eric Miller [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 01, 2004 12:46 PM
To: Tomcat User List
Subject: How to configure logs in Tomcat 5.5?

I noticed in the change log that some changes have been made to the way
things are logged in Tomcat 5.5. I was using something like the
following
in
my server.xml previously. However, this no longer works.

<Logger className="org.apache.catalina.logger.FileLogger"
directory="logs"
prefix="localhost_log."
suffix=".txt"
timestamp="true"/>

I'm wondering how to configure the new "commons-logging?" The default
server.xml doesn't seem to have anything in it for this. Is configuring
this
no longer neccessary? Does it just log to catalina.out now or
something?

Jon


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you.


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to