[jboss-jira] [JBoss JIRA] (LOGMGR-171) Add a PlatformLoggingMXBean implementation
James Perkins (JIRA)
issues at jboss.org
Thu Aug 31 12:23:00 EDT 2017
[ https://issues.jboss.org/browse/LOGMGR-171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13457091#comment-13457091 ]
James Perkins commented on LOGMGR-171:
--------------------------------------
This actually might not be replaceable the more I look at the implementation details. I thought it would working using the standard {{ServiceLoader}} SPI. However this does not seem to be the case. In OpenJDK 8 this always seems to use the {{java.util.logging.LoggingProxyImpl}} which delegates to the {{LogManager.getLoggingMXBean()}}. Currently the {{org.jboss.logmanager.LogManager}} hacks doesn't seem to be setting the correct bean.
While looking at this it does look like {{org.jboss.logmanager.LogManager}} doesn't fully adhere to the {{java.util.logging.LogManager}} contract. At least for the {{getLogger()}} and {{getParentLogger()}} methods. At this point it's likely something we can't change, but it also means the contracts for the {{PlatformLoggingMXBean}} are also incorrect unless there is a way to actually override the default implementation.
> Add a PlatformLoggingMXBean implementation
> ------------------------------------------
>
> Key: LOGMGR-171
> URL: https://issues.jboss.org/browse/LOGMGR-171
> Project: JBoss Log Manager
> Issue Type: Enhancement
> Reporter: James Perkins
> Assignee: James Perkins
>
> The {{LoggingMXBean}} is deprecated in Java 9. The {{PlatformLoggingMXBean}} has been available since Java 7 and should be implemented to be better context aware for JBoss Log Manager.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the jboss-jira
mailing list