The files are created as soon as the output stream is opened. This happens when 
the Appender starts.  I’d have to see your configuration to understand why you 
would be getting multiple files though.

Ralph

> On Sep 16, 2015, at 7:23 AM, Csilla Fabian <csilla.fab...@sde.cz> wrote:
> 
> Hello,
> 
>  I'm using log4j2 RollingFileAppenders to log events of a complex system. My 
> problem is that empty log files are created for every appender even if the 
> given subsystem has nothing to write to them. Is there any way to restrict 
> the number of files using just the XML configuration file? I could find only 
> programmatic solutions.
> Thank you for the answer.
> 
> Regards,
> Csilla Fabian, SDE
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
> For additional commands, e-mail: log4j-user-h...@logging.apache.org
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org

Reply via email to