Empty files created by logger

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Empty files created by logger

CREMARENCO Cosmin

Hello,

 

Is there a setting for the RollingFileAppender that allows creating the log file only when the first log message is output?

Why shouldn’t this be the implementation by default? I’m pretty certain I’m missing something, perhaps created files are used for implementing critical sections?

 

We use plenty of loggers which results in the creation of a huge amount of empty files.

 

Thanks in advance,

 

Cosmin

*******************************

This e-mail contains information for the intended recipient only. It may contain proprietary material or confidential information. If you are not the intended recipient you are not authorised to distribute, copy or use this e-mail or any attachment to it. Murex cannot guarantee that it is virus free and accepts no responsibility for any loss or damage arising from its use. If you have received this e-mail in error please notify immediately the sender and delete the original email received, any attachments and all copies from your system.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Empty files created by logger

Rhys Ulerich-2
Sorry for the slow reply...

> Why shouldn’t this be the implementation by default?

I believe this behavior is consistent with log4j, and is a
consistently-mentioned but as-intended behavior.

- Rhys
Loading...