In log4j 1.2 to log4j 2 migration, what to do with the DailyRollingFileAppender class?
You are looking for the RollingFile appender <RollingFile name=”DAILY_LOG” fileName=”log/daily.log” filePattern=”log/%d{ddMMyyyy}_daily.log” > <PatternLayout pattern=”%d [%7r] %5p – %c – %m%n”/> <Policies> <TimeBasedTriggeringPolicy interval=”1″/> </Policies> </RollingFile> The previous sample rolls over by day, the interval being 1 unit which is determined by the smallest unit of the date lookup in the file pattern. In other words … Read more