Re: Question - RollingFileAppender creates empty files

2015-09-17 Thread Csilla Fabian
in case if there's something that needs to be written to it. - Original Message - From: "Ralph Goers" <ralph.go...@dslextreme.com> To: "log4j-user" <log4j-user@logging.apache.org> Sent: Wednesday, September 16, 2015 6:01:55 PM Subject: Re: Question - Rolling

Re: Question - RollingFileAppender creates empty files

2015-09-17 Thread Ralph Goers
that needs to be written to it. >> >> >> - Original Message - >> From: "Ralph Goers" <ralph.go...@dslextreme.com> >> To: "log4j-user" <log4j-user@logging.apache.org> >> Sent: Wednesday, September 16, 2015 6:01:55 PM >>

Re: Question - RollingFileAppender creates empty files

2015-09-17 Thread Gary Gregory
he log file only in case if > there's something that needs to be written to it. > > > - Original Message - > From: "Ralph Goers" <ralph.go...@dslextreme.com> > To: "log4j-user" <log4j-user@logging.apache.org> > Sent: Wednesday, September 16, 2015

Question - RollingFileAppender creates empty files

2015-09-16 Thread Csilla Fabian
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?

Re: Question - RollingFileAppender creates empty files

2015-09-16 Thread Remko Popma
Hi, Can you provide your configuration file? Remko On Wed, Sep 16, 2015 at 11:23 PM, Csilla Fabian 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 >

Re: Question - RollingFileAppender creates empty files

2015-09-16 Thread Ralph Goers
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 wrote: > > Hello, >