[ 
https://issues.apache.org/jira/browse/LOG4J2-1886?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15974284#comment-15974284
 ] 

Izek Greenfield commented on LOG4J2-1886:
-----------------------------------------

I think I find the way doing this:
{code:java}
     getLoggerContext().getConfiguration().removeLogger(loggerName);
     getLoggerContext().updateLoggers();
{code}

does this correct?

> Remove logger from configuration using code
> -------------------------------------------
>
>                 Key: LOG4J2-1886
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1886
>             Project: Log4j 2
>          Issue Type: Improvement
>          Components: Configurators
>    Affects Versions: 2.8.2
>            Reporter: Izek Greenfield
>
> When I add new logger level in runtime (using Spring Actuator API or JMX API) 
> I don't have a way to remove that logger... it could be not actual logger 
> just an hierarchy, org.springframework to see all the spring in debug.
> It will be very good to have this.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to