How?

That being said, you are welcome to try the #clearAppenders().



On 2020/03/25 13:21:25, Doug Wegscheid <dwegsch...@sbcglobal.net> wrote: 
>  I understand that, but am trying to help you find a solution that works with 
> 2.x.
> While your code removed all the appenders in 1,x, that might not be necessary 
> under 2.x, but I can't help you with that if you don't share more information 
> about why the appenders need to be removed. If you share that information, I 
> (or someone else) might be able to help you get your application converted 
> over to 2.x.
> 
> That being said, you are welcome to try the #clearAppenders().
>     On Wednesday, March 25, 2020, 9:16:47 AM EDT, EDMONDO SENA 
> <edse...@gmail.com> wrote:  
>  
>  
> Sorry but my question is: 
> Is possible to use in some way removeAllAppenders?
> Why this instruction has been deleted?
> 
> 
> On 2020/03/25 13:14:52, Doug Wegscheid <dwegsch...@sbcglobal.net> wrote: 
> >  why do you need to remove all appenders? what happens if you do not?
> > 
> >    On Wednesday, March 25, 2020, 9:12:45 AM EDT, EDMONDO SENA 
> ><edse...@gmail.com> wrote:  
> >  
> >  
> > When you close or switch off our system we've to remove all appenders.
> > In log4j this instruction was possible!
> > 
> > 
> > On 2020/03/25 12:59:30, Doug Wegscheid <dwegsch...@sbcglobal.net> wrote: 
> > >  However: from 
> > >https://logging.apache.org/log4j/log4j-2.1/manual/configuration.html:
> > > | Note that unlike Log4j 1.x, the public Log4j 2 API does not expose 
> > > methods to add, modify or remove appenders and filters or manipulate the 
> > > configuration in any way. 
> > > 
> > > *Why* do you need to remove the appenders? Perhaps there is another way 
> > > to do whatever needs doing?
> > > 
> > > 
> > > 
> > > 
> > > 
> > >    On Wednesday, March 25, 2020, 8:34:56 AM EDT, EDMONDO SENA 
> > ><edse...@gmail.com> wrote:  
> > >  
> > >  Hello,
> > > 
> > > Is there a similar functionality for Log4j2 that remove All appenders for 
> > > Loggers?
> > > Kind regards.
> > > 
> > > ---------------------------------------------------------------------
> > > 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
> > 
> >  
> 
> ---------------------------------------------------------------------
> 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