defer creation of RollingFileAppender log files when Logger and/or AppenderRef level attribute has a value of "OFF"?

2016-07-07 Thread Cheryl_Mrozienski
Dell - Internal Use - Confidential Hi, I am currently using Log4j version 2.3, but might be able to update to a newer version if that would help. I have a log4j2.xml file containing more than thirty RollingFileAppenders (one per product component). Most of these RollingFileAppenders will not

Re: defer creation of RollingFileAppender log files when Logger and/or AppenderRef level attribute has a value of "OFF"?

2016-07-07 Thread Remko Popma
Cheryl, Just thinking out loud, Log4j 2 has the ability to start logging to a new log file that is not explicitly defined in configuration with the RoutingAppender. See https://logging.apache.org/log4j/2.x/faq.html#separate_log_files You may be able to use this feature, perhaps in combination w

Re: defer creation of RollingFileAppender log files when Logger and/or AppenderRef level attribute has a value of "OFF"?

2016-07-07 Thread Ralph Goers
In addition, I would suggest creating a Jira issue describing this. I would think adding a deferOpen option to defer opening the OutputStream until the first write occurs might be possible. Ralph > On Jul 7, 2016, at 3:59 PM, Remko Popma wrote: > > Cheryl, > > Just thinking out loud, Log4j 2

RE: defer creation of RollingFileAppender log files when Logger and/or AppenderRef level attribute has a value of "OFF"?

2016-07-12 Thread Cheryl_Mrozienski
ist Subject: Re: defer creation of RollingFileAppender log files when Logger and/or AppenderRef level attribute has a value of "OFF"? In addition, I would suggest creating a Jira issue describing this. I would think adding a deferOpen option to defer opening the OutputStream until the fi

Re: defer creation of RollingFileAppender log files when Logger and/or AppenderRef level attribute has a value of "OFF"?

2016-07-12 Thread Ralph Goers
essage- > From: Ralph Goers [mailto:ralph.go...@dslextreme.com] > Sent: Thursday, July 07, 2016 8:03 PM > To: Log4J Users List > Subject: Re: defer creation of RollingFileAppender log files when Logger > and/or AppenderRef level attribute has a value of "OFF"? > >

Re: defer creation of RollingFileAppender log files when Logger and/or AppenderRef level attribute has a value of "OFF"?

2016-07-12 Thread Matt Sicker
ph.go...@dslextreme.com] > > Sent: Thursday, July 07, 2016 8:03 PM > > To: Log4J Users List > > Subject: Re: defer creation of RollingFileAppender log files when Logger > and/or AppenderRef level attribute has a value of "OFF"? > > > > In addition, I would