Tim Lucia wrote:
I do. Read, understand, and embrace this:
http://tomcat.apache.org/tomcat-5.5-doc/logging.html
Tim
P.s. you don't say how logging is working for your web application, but if
you are using commons logging, you need to make sure that you keep separate
log4j jars and configs, or don't supply any at all in your application and
use the jar and configs from common/lib.
The way I'm logging right now is to create a FileWriter, and write to it
when I have something to log. I haven't tried to dig into Tomcat's
built-in logging options yet..
-----Original Message-----
From: David Kerber [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 30, 2006 8:42 AM
To: Tomcat Users List
Subject: Re: Daily log rotation?
Can I use it for the Tomcat standard logs without changing my applications?
I want to rotate the stdout_, jakarta_service_, etc logs. I've already got
the logging working fine for my application's own logs.
Dave
Tim Lucia wrote:
Is there some reason you cannot plug in log4j?
1. It's already written
2. It already works
3. It has log rotation (either size-based, or interval based) 4. It has
customizable appenders to output the information you want, in the
format you want ...
Tim
-----Original Message-----
From: David Kerber [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 30, 2006 7:43 AM
To: Tomcat Users List
Subject: Re: Daily log rotation?
I'm planning on trying, but considering how much trouble I have just
getting my own apps to work properly, I don't know how much luck I'll
have working with other people's code ;-)
Parsons Technical Services wrote:
Write a patch and submit it.
----- Original Message ----- From: "David Kerber"
<[EMAIL PROTECTED]>
To: "Tomcat Users List" <users@tomcat.apache.org>
Sent: Wednesday, March 29, 2006 9:21 PM
Subject: Re: Daily log rotation?
Boy, log rotation sure seems like it would be a reasonable function
to have built into tomcat's native logging...
Tim Lucia wrote:
Use Log4J, or another logger implementation of your choosing, with a
RollingDailyFileAppender (Log4J) or equivalent (your choosing) as
the target.
-----Original Message-----
From: Sheets, Jerald [mailto:[EMAIL PROTECTED] Sent: Wednesday,
March 29, 2006 5:04 PM
To: Tomcat Users List
Subject: Re: Daily log rotation?
You could add the logs into logrotate.
See the logrotate project for more information.
NOTE: This is for Linux/UNIX only. If on Windows, I do not know.
Jerald Sheets
Systems Administrator
The Weather Channel Interactive
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]