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
public class JMXConfigurator
extends ContextAwareBase
implements JMXConfiguratorMBean, LoggerContextListener
A class that provides access to logback components via JMX.
Since this class implements JMXConfiguratorMBean it has to be named
as JMXConfigurator}.
- Author:
- Ceki Gülcü, Sébastien Pennec Contributor: Sebastian Davids See http://bugzilla.qos.ch/show_bug.cgi?id=35
-
Field Summary
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context -
Constructor Summary
ConstructorsConstructorDescriptionJMXConfigurator(LoggerContext loggerContext, MBeanServer mbs, ObjectName objectName) -
Method Summary
Modifier and TypeMethodDescriptiongetLoggerEffectiveLevel(String loggerName) getLoggerLevel(String loggerName) booleanJMXConfigurator should not be removed subsequent to a LoggerContext reset.voidonLevelChange(Logger logger, Level level) voidonReset(LoggerContext context) voidonStart(LoggerContext context) voidonStop(LoggerContext context) When the associated LoggerContext is stopped, this configurator must be unregisteredvoidreloadByFileName(String fileName) voidreloadByURL(URL url) voidvoidsetLoggerLevel(String loggerName, String levelStr) toString()Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
-
Constructor Details
-
JMXConfigurator
-
-
Method Details
-
reloadDefaultConfiguration
- Specified by:
reloadDefaultConfigurationin interfaceJMXConfiguratorMBean- Throws:
JoranException
-
reloadByFileName
- Specified by:
reloadByFileNamein interfaceJMXConfiguratorMBean- Throws:
JoranExceptionFileNotFoundException
-
reloadByURL
- Specified by:
reloadByURLin interfaceJMXConfiguratorMBean- Throws:
JoranException
-
setLoggerLevel
- Specified by:
setLoggerLevelin interfaceJMXConfiguratorMBean
-
getLoggerLevel
- Specified by:
getLoggerLevelin interfaceJMXConfiguratorMBean
-
getLoggerEffectiveLevel
- Specified by:
getLoggerEffectiveLevelin interfaceJMXConfiguratorMBean
-
getLoggerList
- Specified by:
getLoggerListin interfaceJMXConfiguratorMBean
-
getStatuses
- Specified by:
getStatusesin interfaceJMXConfiguratorMBean
-
onStop
When the associated LoggerContext is stopped, this configurator must be unregistered- Specified by:
onStopin interfaceLoggerContextListener
-
onLevelChange
- Specified by:
onLevelChangein interfaceLoggerContextListener
-
onReset
- Specified by:
onResetin interfaceLoggerContextListener
-
isResetResistant
public boolean isResetResistant()JMXConfigurator should not be removed subsequent to a LoggerContext reset.- Specified by:
isResetResistantin interfaceLoggerContextListener- Returns:
-
onStart
- Specified by:
onStartin interfaceLoggerContextListener
-
toString
-