RE: Converting custom Appender to Log4j v2

2022-08-16 Thread Markus Dimmerling
> As for delaying creating the file, that can be accomplished just by > specifying createOnDemand=“true”. Keep in mind, that this is not true for parent folders. Parent folders will be created on initialization even before createOnDemand. (At least for RollingFileAppenders) This was my workarou

CronTriggeringPolicy in RollingFileAppender is behind by one iteration

2022-03-02 Thread Markus Dimmerling
Hello everyone, I have the following requirements for the migration of a custom log4j1 RollingFileAppender: * Log every morning into a new directory with the current date as the name of the directory and part of the log file name * If the size of a log file exceeds 100 MB, rollover to a