Package ch.qos.logback.classic.jmx
Class JMXConfigurator
- java.lang.Object
-
- ch.qos.logback.core.spi.ContextAwareBase
-
- ch.qos.logback.classic.jmx.JMXConfigurator
-
- All Implemented Interfaces:
JMXConfiguratorMBean
,LoggerContextListener
,ContextAware
@Deprecated(since="2022-01-27") public class JMXConfigurator extends ContextAwareBase implements JMXConfiguratorMBean, LoggerContextListener
Deprecated.This internal logback API is not supported by AEM as a Cloud Service.A class that provides access to logback components via JMX.Since this class implements
JMXConfiguratorMBean
it has to be named as JMXConfigurator}.
-
-
Constructor Summary
Constructors Constructor Description JMXConfigurator(LoggerContext loggerContext, javax.management.MBeanServer mbs, javax.management.ObjectName objectName)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.String
getLoggerEffectiveLevel(java.lang.String loggerName)
Deprecated.java.lang.String
getLoggerLevel(java.lang.String loggerName)
Deprecated.java.util.List<java.lang.String>
getLoggerList()
Deprecated.java.util.List<java.lang.String>
getStatuses()
Deprecated.boolean
isResetResistant()
Deprecated.JMXConfigurator should not be removed subsequent to a LoggerContext reset.void
onLevelChange(Logger logger, Level level)
Deprecated.void
onReset(LoggerContext context)
Deprecated.void
onStart(LoggerContext context)
Deprecated.void
onStop(LoggerContext context)
Deprecated.When the associated LoggerContext is stopped, this configurator must be unregisteredvoid
reloadByFileName(java.lang.String fileName)
Deprecated.void
reloadByURL(java.net.URL url)
Deprecated.void
reloadDefaultConfiguration()
Deprecated.void
setLoggerLevel(java.lang.String loggerName, java.lang.String levelStr)
Deprecated.java.lang.String
toString()
Deprecated.-
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getStatusManager, setContext
-
-
-
-
Constructor Detail
-
JMXConfigurator
public JMXConfigurator(LoggerContext loggerContext, javax.management.MBeanServer mbs, javax.management.ObjectName objectName)
Deprecated.
-
-
Method Detail
-
reloadDefaultConfiguration
public void reloadDefaultConfiguration() throws JoranException
Deprecated.- Specified by:
reloadDefaultConfiguration
in interfaceJMXConfiguratorMBean
- Throws:
JoranException
-
reloadByFileName
public void reloadByFileName(java.lang.String fileName) throws JoranException, java.io.FileNotFoundException
Deprecated.- Specified by:
reloadByFileName
in interfaceJMXConfiguratorMBean
- Throws:
JoranException
java.io.FileNotFoundException
-
reloadByURL
public void reloadByURL(java.net.URL url) throws JoranException
Deprecated.- Specified by:
reloadByURL
in interfaceJMXConfiguratorMBean
- Throws:
JoranException
-
setLoggerLevel
public void setLoggerLevel(java.lang.String loggerName, java.lang.String levelStr)
Deprecated.- Specified by:
setLoggerLevel
in interfaceJMXConfiguratorMBean
-
getLoggerLevel
public java.lang.String getLoggerLevel(java.lang.String loggerName)
Deprecated.- Specified by:
getLoggerLevel
in interfaceJMXConfiguratorMBean
-
getLoggerEffectiveLevel
public java.lang.String getLoggerEffectiveLevel(java.lang.String loggerName)
Deprecated.- Specified by:
getLoggerEffectiveLevel
in interfaceJMXConfiguratorMBean
-
getLoggerList
public java.util.List<java.lang.String> getLoggerList()
Deprecated.- Specified by:
getLoggerList
in interfaceJMXConfiguratorMBean
-
getStatuses
public java.util.List<java.lang.String> getStatuses()
Deprecated.- Specified by:
getStatuses
in interfaceJMXConfiguratorMBean
-
onStop
public void onStop(LoggerContext context)
Deprecated.When the associated LoggerContext is stopped, this configurator must be unregistered- Specified by:
onStop
in interfaceLoggerContextListener
-
onLevelChange
public void onLevelChange(Logger logger, Level level)
Deprecated.- Specified by:
onLevelChange
in interfaceLoggerContextListener
-
onReset
public void onReset(LoggerContext context)
Deprecated.- Specified by:
onReset
in interfaceLoggerContextListener
-
isResetResistant
public boolean isResetResistant()
Deprecated.JMXConfigurator should not be removed subsequent to a LoggerContext reset.- Specified by:
isResetResistant
in interfaceLoggerContextListener
- Returns:
-
onStart
public void onStart(LoggerContext context)
Deprecated.- Specified by:
onStart
in interfaceLoggerContextListener
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toString
in classjava.lang.Object
-
-