You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Dan Lipofsky <da...@nuserve.com> on 2003/01/11 00:04:42 UTC

Logging (was Re: How do I...)

> To properly handle logging, you might want to check out log4j.org or
> commons-logging.  It's one of the first things I setup for a project, it
> makes debugging extremely smooth.

I agree, and I have converted all the backend stuff to use log4j.
But the 400 JSP files that already exist would take a while to convert
and we don't have the resources.  Not too much of a problem
right now because we only have one webapp.

Another question:
The default loggers roll over the file at midnight and timestamp them
with the date.  For the develeopment servers, which we restart many
times a day, it would be nice to roll the files at every restart and stamp
them with both date and time.  I kludged log4j to do this for the
log4j files, but is there an easy way to do this with the Tomcat loggers?
Thanks,
Dan



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Logging (was Re: How do I...)

Posted by Will Hartung <wi...@msoft.com>.
> From: "Dan Lipofsky" <da...@nuserve.com>
> Sent: Friday, January 10, 2003 3:04 PM
> Subject: Logging (was Re: How do I...)


> Another question:
> The default loggers roll over the file at midnight and timestamp them
> with the date.  For the develeopment servers, which we restart many
> times a day, it would be nice to roll the files at every restart and stamp
> them with both date and time.  I kludged log4j to do this for the
> log4j files, but is there an easy way to do this with the Tomcat loggers?

Sure, Kludge the Tomcat loggers to do it as well. :-)

Regards,

Will Hartung
(willh@msoft.com)




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>