You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Kailash KN <ka...@thbs.com> on 2006/06/12 15:18:52 UTC
Having a daily, weekly, monthly and yearly roll over file.
Hi,
I want to have a log file that rolls over daily, weekly, monthly and annually depending on the option i choose.
I had a look at DailyRollingFileAppender, but it did not serve my purpose. But can i have a single logger object with one single appender attached to it, which serves my requirement.
Any help would be greatly appreciated. Thanks in advance.
Regards,
Kailash
Re: Having a daily, weekly, monthly and yearly roll over file.
Posted by Kailash KN <ka...@thbs.com>.
Thanks a lot James, its working now.... :-)
Thanks & Regards,
Kailash.K.N.
----- Original Message -----
From: "James Stauffer" <st...@gmail.com>
To: "Log4J Users List" <lo...@logging.apache.org>
Sent: Monday, June 12, 2006 7:10 PM
Subject: Re: Having a daily, weekly, monthly and yearly roll over file.
> My DateFormatFileAppender
> (http://stauffer.james.googlepages.com/DateFormatFileAppender.java)
> would handle rolling daily, monthy, or yearly, but not weekly. If you
> want something that does weekly also you would have to implement your
> own appender.
>
> On 6/12/06, Kailash KN <ka...@thbs.com> wrote:
>> Hi,
>>
>> I want to have a log file that rolls over daily, weekly, monthly and
>> annually depending on the option i choose.
>>
>> I had a look at DailyRollingFileAppender, but it did not serve my
>> purpose. But can i have a single logger object with one single appender
>> attached to it, which serves my requirement.
>>
>> Any help would be greatly appreciated. Thanks in advance.
>>
>> Regards,
>> Kailash
>>
>
>
> --
> James Stauffer
> Are you good? Take the test at http://www.livingwaters.com/good/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
Re: Having a daily, weekly, monthly and yearly roll over file.
Posted by James Stauffer <st...@gmail.com>.
My DateFormatFileAppender
(http://stauffer.james.googlepages.com/DateFormatFileAppender.java)
would handle rolling daily, monthy, or yearly, but not weekly. If you
want something that does weekly also you would have to implement your
own appender.
On 6/12/06, Kailash KN <ka...@thbs.com> wrote:
> Hi,
>
> I want to have a log file that rolls over daily, weekly, monthly and annually depending on the option i choose.
>
> I had a look at DailyRollingFileAppender, but it did not serve my purpose. But can i have a single logger object with one single appender attached to it, which serves my requirement.
>
> Any help would be greatly appreciated. Thanks in advance.
>
> Regards,
> Kailash
>
--
James Stauffer
Are you good? Take the test at http://www.livingwaters.com/good/
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org