You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Nicholas Wertzberger (JIRA)" <ji...@apache.org> on 2019/05/03 22:35:00 UTC

[jira] [Commented] (LOG4J2-2576) JMX MBeans go away if using -Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager

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

Nicholas Wertzberger commented on LOG4J2-2576:
----------------------------------------------

Discovered more here. The reason these mbeans go away is because, when this is turned on, an addition JmxMbeanServer is created, which is then not the one available when visible via jconsole.

> JMX MBeans go away if using -Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager
> -----------------------------------------------------------------------------------------------
>
>                 Key: LOG4J2-2576
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-2576
>             Project: Log4j 2
>          Issue Type: Bug
>    Affects Versions: 2.8.2, 2.11.2
>            Reporter: Nicholas Wertzberger
>            Priority: Minor
>
> Tried on at least 2.8.2 and 2.11.2, the jmx mbeans normally available disappear if using log4j2 as the JCL logging manager. Is this on purpose? Does it have to be this way? Using the java.util.logging mbeans for "setLoggerLevel" don't appear to work on log4j2 loggers, either.
>  
> To recreate, start up any app with log4j2 logging, specifying -Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager as a system property.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)