Logback API
Version 0.9.8

ch.qos.logback.classic.jmx
Class Configurator

java.lang.Object
  extended by ch.qos.logback.core.spi.ContextAwareBase
      extended by ch.qos.logback.classic.jmx.Configurator
All Implemented Interfaces:
ConfiguratorMBean, ContextAware

public class Configurator
extends ContextAwareBase
implements ConfiguratorMBean

A class that provides access to logback components via JMX.

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
Configurator(LoggerContext loggerContext)
           
 
Method Summary
 String getLoggerEffectiveLevel(String loggerName)
           
 String getLoggerLevel(String loggerName)
           
 List<String> getLoggerList()
           
 List<String> getStatuses()
           
 void reload()
           
 void reload(String fileName)
           
 void reload(URL url)
           
 void setLoggerLevel(String loggerName, String levelStr)
           
 
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getStatusManager, setContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Configurator

public Configurator(LoggerContext loggerContext)
Method Detail

reload

public void reload()
Specified by:
reload in interface ConfiguratorMBean

reload

public void reload(String fileName)
            throws JoranException
Specified by:
reload in interface ConfiguratorMBean
Throws:
JoranException

reload

public void reload(URL url)
            throws JoranException
Specified by:
reload in interface ConfiguratorMBean
Throws:
JoranException

setLoggerLevel

public void setLoggerLevel(String loggerName,
                           String levelStr)
Specified by:
setLoggerLevel in interface ConfiguratorMBean

getLoggerLevel

public String getLoggerLevel(String loggerName)
Specified by:
getLoggerLevel in interface ConfiguratorMBean

getLoggerEffectiveLevel

public String getLoggerEffectiveLevel(String loggerName)
Specified by:
getLoggerEffectiveLevel in interface ConfiguratorMBean

getLoggerList

public List<String> getLoggerList()
Specified by:
getLoggerList in interface ConfiguratorMBean

getStatuses

public List<String> getStatuses()
Specified by:
getStatuses in interface ConfiguratorMBean

Logback API
Version 0.9.8

Copyright © 2005-2008 QOS.ch. All Rights Reserved.