chazzy
09-25-2006, 12:11 PM
All,
I know that I should probably try contacting them first, but the documentation on log4j seems vague.
What I want to do is have a daily rotating log. I need to create it for Appenders A,B, and C.
The descriptions for A, B, and C are supposed to look like this
log4j.appender.A=org.apache.log4j.RollingFileAppender
log4j.appender.A.File=example.log
log4j.appender.A.layout=org.apache.log4j.PatternLayout
log4j.appender.A.layout.ConversionPattern=%p %t %c - %m%n
What I don't get is how to implement time based rolling logs, like everyday at midnight create a new log.
I know that I should probably try contacting them first, but the documentation on log4j seems vague.
What I want to do is have a daily rotating log. I need to create it for Appenders A,B, and C.
The descriptions for A, B, and C are supposed to look like this
log4j.appender.A=org.apache.log4j.RollingFileAppender
log4j.appender.A.File=example.log
log4j.appender.A.layout=org.apache.log4j.PatternLayout
log4j.appender.A.layout.ConversionPattern=%p %t %c - %m%n
What I don't get is how to implement time based rolling logs, like everyday at midnight create a new log.