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,

Tarun

Reply via email to