[logback-user] Time based rolling policy
Kaushal Shriyan
kaushalshriyan at gmail.com
Thu Jul 8 16:03:25 CEST 2010
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
More information about the Logback-user
mailing list