hi

is there a way I can use log4j without modifiying tomcat source?  I would
like to have catalina.out roll over every night, but change nothing else
about what goes into catalina.out or other aspects of tomcat logging.
anybody have an idea?

thanks
john

-----Original Message-----
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Monday, March 31, 2003 9:28 AM
To: Tomcat Users List
Subject: RE: best practices on rotating tomcat logs



Howdy,
We use nightly rotated (at midnight) log4j logs, using log4j's
DailyRollingFileAppender class.  It's worked very well for us.  The
files are automatically renamed, e.g. from x.txt to x.txt.2003-03-31,
and we archive them that way.

We cat them all together periodically for traffic analysis etc, although
there are tools which remove the need for concatenating all the log4j
together.  

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: klute [mailto:[EMAIL PROTECTED]
>Sent: Friday, March 28, 2003 3:20 PM
>To: Tomcat Users List
>Subject: best practices on rotating tomcat logs
>
>Hi All,
>
>i run tomcat behind apache via mod_jk. currently i
>define a timestamped <Logger> for each <Context> in my
>server.xml:
>
><Logger
>className="org.apache.catalina.logger.FileLogger"
>          prefix="mycontextA." suffix=".txt"
>          timestamp="true"/>
>
>and a logger for my engine in which all the contexts
>reside:
>
><Logger
>className="org.apache.catalina.logger.FileLogger"
>        prefix="apache_log." suffix=".txt"
>        timestamp="true"/>
>
>All the tomcat's sdtout goes to catalina.out (default
>setup).
>
>I am wondering if this is pretty much what other
>people do and if there is a better way of doing it.
>
>i just found that apache can rotate its logs with its
>bin/rotatelogs where you can specify the rotation
>interval.
>
>does tomcat have a similar functionality? i searched
>for "rotate" in Tomcat's source and found the
>AccessLogValve class which could be i want, but i need
>help figuring it out.
>
>thanks a lot!
>james
>
>
>__________________________________________________
>Do you Yahoo!?
>Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
>http://platinum.yahoo.com
>
>---------------------------------------------------------------------
>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