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: tomcat-user@jakarta.apache.org
>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 <swimmer@gx.nl> 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 - swimmer@gx.nl 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-
>unsubscribe@jakarta.apache.org>
>For additional commands, e-mail: <mailto:tomcat-user-
>help@jakarta.apache.org>
|