What is the required configuration in log4j.properties file in order to backup log file in the end of each month (monthly rolling) and continue to have the same name for active log file?
What is the required configuration in log4j.properties file in order to backup log file
Share
So I found that
DatePatterndoes the trick:Here, name of the active log file is always “process.log” and at the beginning of each month the file is saved with the name “process.log.yyyy-MM” when the first log of that month is pushed to log4j and the active log file is reset.