rgoers commented on issue #1722: URL: https://github.com/apache/logging-log4j2/issues/1722#issuecomment-1691023629
Despite this having been closed I am going to provide an explanation. 1. Despite your using CronTriggeringPolicy the %d pattern is used to calculate the rollover interval for the purposes of calculating the file name. It does this by using the file creation time of the log file. This is so the file always has a time that is the same or earlier than the first log record in the file. 2. The $date lookup uses the current time of when the lookup is invoked. I would suggest you try using %d for your directory name and then only include %i in the file name. This actually makes more sense since, with what you wanted, the time in the directory and time in the file name would always be the same. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
