You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Peter Stavrinides <P....@albourne.com> on 2008/11/14 12:04:36 UTC

Logging Tomcat errors

Hi all,

Can anyone point me in the right direction, I need to implement a logging and reporting mechanism for Tomcat (6.0.18 on Debian based Linux with JSVC).

I am thinking of using either Log4j or Juli logging for only severe errors. Ideal would be to send an alert when the server crashes (by logging to an email appender - I know log4j has this feature), other errors can go to a log file. Some documentation/advice would be a great help! 


cheers,
Peter

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Logging Tomcat errors

Posted by Kees Jan Koster <kj...@kjkoster.org>.
Dear Peter,

> I guess it should be easy enough to distinguish between severe  
> errors and ordinary errors, but how do you distinguish between 500  
> errors application runtime errors? I specifically want to report  
> errors that occur at the container level and not at the application  
> level... I hope this makes sense.

Each logged line has an associated categry. You could configure your  
logging to only log the container level categories.

--
Kees Jan

http://java-monitor.com/forum/
kjkoster@kjkoster.org
06-51838192

Human beings make life so interesting. Do you know that in a universe  
so full of wonders,
they have managed to invent boredom. Quite astonishing... -- Terry  
Partchett


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Logging Tomcat errors

Posted by Peter Stavrinides <P....@albourne.com>.
I guess it should be easy enough to distinguish between severe errors and ordinary errors, but how do you distinguish between 500 errors application runtime errors? I specifically want to report errors that occur at the container level and not at the application level... I hope this makes sense.

Thanks
Peter 


----- Original Message -----
From: "Charles R Caldarale" <Ch...@unisys.com>
To: "Tomcat Users List" <us...@tomcat.apache.org>
Sent: Friday, 14 November, 2008 5:32:17 PM GMT +02:00 Athens, Beirut, Bucharest, Istanbul
Subject: RE: Logging Tomcat errors

> From: Peter Stavrinides [mailto:P.Stavrinides@albourne.com]
> Subject: Logging Tomcat errors
>
> Can anyone point me in the right direction, I need to
> implement a logging and reporting mechanism for Tomcat
> (6.0.18 on Debian based Linux with JSVC).

What specifically do you need to know beyond what's in the doc?
http://tomcat.apache.org/tomcat-6.0-doc/logging.html
http://wiki.apache.org/tomcat/FAQ/Logging
http://wiki.apache.org/tomcat/HowTo#head-af688216137bbf0542fa3f599cd4c41dcba68056
http://wiki.apache.org/tomcat/HowTo#head-6e03ddcd16fff5f1900e5332f311ed7faa228119

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Logging Tomcat errors

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Peter Stavrinides [mailto:P.Stavrinides@albourne.com]
> Subject: Logging Tomcat errors
>
> Can anyone point me in the right direction, I need to
> implement a logging and reporting mechanism for Tomcat
> (6.0.18 on Debian based Linux with JSVC).

What specifically do you need to know beyond what's in the doc?
http://tomcat.apache.org/tomcat-6.0-doc/logging.html
http://wiki.apache.org/tomcat/FAQ/Logging
http://wiki.apache.org/tomcat/HowTo#head-af688216137bbf0542fa3f599cd4c41dcba68056
http://wiki.apache.org/tomcat/HowTo#head-6e03ddcd16fff5f1900e5332f311ed7faa228119

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org