Re: AsyncAppender and dynamically created appender

2015-06-17 Thread Mikael Ståldal
Let's consider https://issues.apache.org/jira/browse/LOG4J2-1043 to be a request for that On Wed, Jun 17, 2015 at 3:59 PM, Ralph Goers wrote: > That seems like a reasonable approach to me. Those appenders should only > stop when the background thread stops. > > Ralph > > On Jun 17, 2015, at 12:

Re: AsyncAppender and dynamically created appender

2015-06-17 Thread Ralph Goers
That seems like a reasonable approach to me. Those appenders should only stop when the background thread stops. Ralph > On Jun 17, 2015, at 12:52 AM, Mikael Ståldal > wrote: > > Would it make sense to allow AsyncAppender to have dynamically created > delegate appenders (and not only Appende

Re: AsyncAppender and dynamically created appender

2015-06-17 Thread Mikael Ståldal
Would it make sense to allow AsyncAppender to have dynamically created delegate appenders (and not only AppenderRefs)? And initialize those delegate appenders in AsyncAppender's background thread? On Wed, Jun 17, 2015 at 9:50 AM, Mikael Ståldal wrote: > Yes, this is related to an appender hangin

Re: AsyncAppender and dynamically created appender

2015-06-17 Thread Mikael Ståldal
Yes, this is related to an appender hanging or throwing an exception on start up. On Tue, Jun 16, 2015 at 7:41 PM, Gary Gregory wrote: > Mikael, > > Is this related to an appender hanging or throwing an (unchecked) > exception on start up? > > Gary > > On Tue, Jun 16, 2015 at 10:27 AM, Ralph Goe

Re: AsyncAppender and dynamically created appender

2015-06-16 Thread Gary Gregory
Mikael, Is this related to an appender hanging or throwing an (unchecked) exception on start up? Gary On Tue, Jun 16, 2015 at 10:27 AM, Ralph Goers wrote: > The Appenders used by the AsyncAppender are known at configuration time. > So starting and stopping them in conjunction when the configur

Re: AsyncAppender and dynamically created appender

2015-06-16 Thread Ralph Goers
The Appenders used by the AsyncAppender are known at configuration time. So starting and stopping them in conjunction when the configuration is initialized makes sense (and makes managing them easier). The Appenders created by the RoutingAppender are dynamic - the number of them and their confi

Re: AsyncAppender and dynamically created appender

2015-06-16 Thread Mikael Ståldal
I want to create / initializte the delegates of an AsyncAppender asynchronously, to protect the application from exceptions and delays in delegate appender initialization. Is that possible with routing appender? (See https://issues.apache.org/jira/browse/LOG4J2-1043 ) On Tue, Jun 16, 2015 at 3:25

Re: AsyncAppender and dynamically created appender

2015-06-16 Thread Remko Popma
You could have a routing appender as the delegate of an async appender. On Tue, Jun 16, 2015 at 10:01 PM, Mikael Ståldal wrote: > Is is possible to have the delegate(s) of AsyncAppender created > dynamically, just like the delegates of RoutingAppender? > > -- > [image: MagineTV] > > *Mikael Stå

AsyncAppender and dynamically created appender

2015-06-16 Thread Mikael Ståldal
Is is possible to have the delegate(s) of AsyncAppender created dynamically, just like the delegates of RoutingAppender? -- [image: MagineTV] *Mikael Ståldal* Senior backend developer *Magine TV* mikael.stal...@magine.com Regeringsgatan 25 | 111 53 Stockholm, Sweden | www.magine.com P