logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tarun Sharma <tarun.k.sha...@oracle.com>
Subject log4j2 creates empty log file when configuration happens
Date Wed, 21 Dec 2016 08:38:06 GMT
Hi All,


I have recently upgraded to log4j2 and find that log4j creates empty log files for all my
rolling file appenders when the java process starts up and initializes the log4j context.

So, even if some of my job threads are not running, they have empty log files created for
the related appenders.


Is there a way to postpone the creation of log file to the time when first LogEvent is triggered?


Thanks and Regards,


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message