tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <Yoav.Shap...@mpi.com>
Subject RE: How to configure logs in Tomcat 5.5?
Date Wed, 01 Sep 2004 18:29:32 GMT

Hi,
Exceptions will be logged to the console by default, yeah.

Access logs have been commented out by default for a long long time,
this is not new to Tomcat 5.5, and it's for performance reasons.

Yoav Shapira
Millennium Research Informatics


>-----Original Message-----
>From: Jonathan Eric Miller [mailto:jemiller@uchicago.edu]
>Sent: Wednesday, September 01, 2004 2:26 PM
>To: Tomcat Users List
>Subject: Re: How to configure logs in Tomcat 5.5?
>
>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" <Yoav.Shapira@mpi.com>
>To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
>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:jemiller@uchicago.edu]
>>>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: tomcat-user-unsubscribe@jakarta.apache.org
>>>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>>
>>
>>
>> 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: tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org




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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message