Hi,
I am using DailyRollingFile Appender for manage my log.
but i want to backup just the last 5 days?
is that possible to do that?
Which log4j version that support my needs?
this my properties file.

---------
#set the level of the root logger to DEBUG and set its appender
as an appender named X
log4j.rootLogger = INFO, stdout ,rolling

log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d %p [%c] - %m%n

#BEGIN ROLLING FILE APPENDER
log4j.appender.rolling=org.apache.log4j.DailyRollingFileAppender
log4j.appender.rolling.File=log/Daily.log
log4j.appender.rolling.DatePattern='.'yyyy-MM-dd
log4j.appender.rolling.MaxBackupIndex = 5
log4j.appender.rolling.layout=org.apache.log4j.PatternLayout
log4j.appender.rolling.layout.ConversionPattern=%d %p [%c] - %m%n

# END ROLLING FILE APPENDER


---------------


Thanks For your attention all.

regards,
Michael

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to