Hi,
It's not a problem for us.  But here's an idea, if you're hell-bent on
having monthly files instead of daily ones: cat them all together ;)  So
on the last day of a given month, cat all the files from that month
(e.g. cat catalina_log.2002-[month]-*.txt > Catalina_log.2002-month.txt)
into one file for the month. ;)

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Stefan Wimmer [mailto:swimmer@;gx.nl]
>Sent: Friday, November 01, 2002 7:54 AM
>To: [EMAIL PROTECTED]
>Subject: Re: Log rotation in Tomcat 4.1.12
>
>Hi guys,
>
>there is no chance to get an answer heh? Nobody has solved this problem
>or is it not a problem for anyone else ?!?!
>
>Still curious
>Stefan
>
>* Stefan <[EMAIL PROTECTED]> wrote on 31/Oct/2002 - 01:41:17 :
>>> Hello to everyone,
>>>
>>> I was parsing this mailing list, google and the tomcat documentation
and
>>> did not find the answer to my question:
>>>
>>>     "Can I change the default log rotation from daily to monthly?"
>>>
>>> As far as I can see there was such a functionality in TC 3.3 called
>>> 'LogSetter' - I could not find that back in TC 4.* ...
>>>
>>> Can I use Lifecycle Listeners by any chance to influence the log
>>> rotation?
>>>
>>> If anyone can give me an answer I'd *really* appreciate that ;-)
>>>
>>
>> Hi people,
>>
>> does getting no responses mean that there is no answer or that it is
too
>> simple to fix that ;-)
>>
>> For my part I was busy yesterday to look in FileLogger.java what I
can
>> do and this is the crude result:
>>
>>         // If the date has changed, switch log files
>>         /* not in use - [EMAIL PROTECTED] 301002
>>         if (!date.equals(tsDate)) {
>>             synchronized (this) {
>>                 if (!date.equals(tsDate)) {
>>                     close();
>>                     date = tsDate;
>>                     open();
>>                 }
>>             }
>>         }
>>         */
>>
>>         if (writer == null) {
>>             open();
>>         }
>>
>>
>> I removed the daily switch functionality and from now on there will
be
>just
>> *one* logfile for every Logger I define ;-) I admit it is very crude
but
>it
>> works. If there is any time left I'll investigate how to expand the
>> functionality on a daily, weekly or monthly basis configurable via
>server.xml
>>
>> But saying that I have to admit again that my Java knowledge is very
bad
>- good
>> chance too expand that as well ;-)
>
>--
>To unsubscribe, e-mail:   <mailto:tomcat-user-
>[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:tomcat-user-
>[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:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>

Reply via email to