Hi, Below is something I got from the list from a much older post, if that's the case, how do I tell tomcat to rotate in that fashion (monthly or weekly instead of daily)
The workaround I am using now is to have tomcat create a unique servlet log file daily (using timestamp in filename), and I have a cronjob that runs at midnight that creates a symlink to the current day's logfile (my developers are lazy like that :) (hope none of them read this list) outstanding questions I have: 1) how do I make it so that tomcat will only rotate logs weekly or monthly? 2) can I make it so that the servlet logs aren't overwritten every time I restart tomcat? 3) why does tomcat decide to rotate the logs at 1am instead of midnight? 4) Are there any other attributes to LogSetter? (I only see 5 in the doc, with nothing pertaining to rotation) Thank you very, very much for any help you can give me. -Ray >From an older post: RE: How do I rotate logs for Tomcat? * From: Ignacio J. Ortega * Subject: RE: How do I rotate logs for Tomcat? * Date: Thu, 01 Feb 2001 12:36:59 -0800 FYI. Proposed Tomcat 3.3 Release , already cycles logs in a flexible basis, allowing to use Month,Day,Year or whatever combination you like as rotation time . Tomcat 4.0 already has this capability too..but only in daily rotation.. Saludos , Ignacio J. Ortega --------- On Thu, 2002-04-04 at 18:25, Ignacio J. Ortega wrote: > ohh sorry not completely read the message i was responding.. > > Saludos , > Ignacio J. Ortega > > > > -----Mensaje original----- > > De: Ignacio J. Ortega [mailto:[EMAIL PROTECTED]] > > Enviado el: viernes 5 de abril de 2002 2:22 > > Para: 'Tomcat Users List' > > Asunto: RE: changing auto log rotation in TC3.3 ? > > > > > > <LogSetter name="servlet_log" > > timestamps="true" > > verbosityLevel = "INFORMATION" > > path="/var/log/tomcat3/micro-${yyyyMMdd}.log" > > /> > > > > Is a Java Simple Date Format..HTH > > > > > > Saludos , > > Ignacio J. Ortega -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>