Dijkstra30
Programmer
I want to set my RollingFileAppender to create a new file every day, not when it reaches to a specific size.
How do i do this in log4j.properties file?
I found suggestions like this:
but i get the warning :
log4j:WARN No such property [rollingPolicy] in org.apache.log4j.RollingFileAppender
Anyone knows what are the properties to be set?
How do i do this in log4j.properties file?
I found suggestions like this:
Code:
[COLOR=darkgreen]
log4j.appender.ROLLING.rollingPolicy=TimeBasedRollingPolicy
log4j.appender.ROLLING.rollingPolicy.FileNamePattern=%d.log
[/color]
log4j:WARN No such property [rollingPolicy] in org.apache.log4j.RollingFileAppender
Anyone knows what are the properties to be set?