Need to create the archieved file for all generated log file using log4j
Hi,
Suppose we have defined following log properties:
log4j.appender.rolling=org.apache.log4j.RollingFil eAppender
log4j.appender.rolling.File=<log file path>
log4j.appender.rolling.MaxFileSize=10MB
log4j.appender.rolling.MaxBackupIndex=10
This will generated the 10 backup log file with each size of 10MB . After all 10 files got generated i will overwrite the last one menas old log got removed.
My requirement is after all 10 files got generated, i need to archieved these file and after again new files get generate. so that we shuold not lose the log data.
Please let me know ,how we can achieved this?