Need to create the archieved file for all generated log file using log4j
Suppose we have defined following log properties:
log4j.appender.rolling.File=<log file path>
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?