LoggingMXBean
is no longer a platform MXBean
and is replaced
with java.lang.management.PlatformLoggingMXBean
.
It will not register in the platform MBeanServer
.
Use ManagementFactory.getPlatformMXBean(PlatformLoggingMXBean.class)
instead.
The management interface for the logging facility.
java.lang.management.PlatformLoggingMXBean
is the management interface
for logging facility registered in the java.lang.management.ManagementFactory.getPlatformMBeanServer()
.
It is recommended to use the PlatformLoggingMXBean
obtained via
the java.lang.management.ManagementFactory.getPlatformMXBean(Class)
method.
java.lang.management.PlatformLoggingMXBean