[logback-user] Time based rolling policy

Kaushal Shriyan kaushalshriyan at gmail.com
Thu Jul 8 18:20:46 CEST 2010


On Thu, Jul 8, 2010 at 9:17 PM, Ceki Gülcü <ceki at qos.ch> wrote:
> Hello Kaushal,
>
> Although there have been other requests for this feature, logback does
> not currently support rolling at a specified time. By the way, why do
> you need to roll over at a specified time? What's wrong with midnight?
>
> On 08/07/2010 4:03 PM, Kaushal Shriyan wrote:
>>
>> Hi,
>>
>> I am referring to
>> http://logback.qos.ch/manual/appenders.html#TimeBasedRollingPolicy.
>> Below is the log4j.properties.
>>
>> log4j.rootLogger=INFO, R
>> log4j.appender.R=org.apache.log4j.DailyRollingFileAppender
>> log4j.appender.R.File=${catalina.home}/logs/catalina.out
>> log4j.appender.R.DatePattern='.'yyyy-MM-dd
>> log4j.appender.R.layout=org.apache.log4j.PatternLayout
>>
>>
>> Basically if i set log4j.appender.R.DatePattern='.'yyyy-MM-dd in
>> log4j.properties It rolls over at midnight. is there a way to roll
>> over at say 12:00 Noon afternoon
>> I think its possible using TimeBasedRollingPolicy but not sure how to use
>> it.
>>
>> Please help me understand with examples
>>
>> Thanks and Regards
>>
>> Kaushal
>
> _______________________________________________
> Logback-user mailing list
> Logback-user at qos.ch
> http://qos.ch/mailman/listinfo/logback-user
>

Hi Ceki,

Since our servers are hosted on different timezones, so taking care of
the layover.
Please suggest/further

Thanks and Regards

Kaushal


More information about the Logback-user mailing list