net.sourceforge.cruisecontrol.jmx
Class LoggerController

java.lang.Object
  extended bynet.sourceforge.cruisecontrol.jmx.LoggerController
All Implemented Interfaces:
LoggerControllerMBean

public class LoggerController
extends java.lang.Object
implements LoggerControllerMBean

Implementation for the LoggerControllerMBean to control the Level used by the controlled Logger.

Author:
Joris Kuipers

Constructor Summary
LoggerController(org.apache.log4j.Logger logger)
           
 
Method Summary
 java.lang.String getLoggingLevel()
           
 java.lang.String getName()
           
 void setLoggingLevel(java.lang.String level)
          set the new logging level to use.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggerController

public LoggerController(org.apache.log4j.Logger logger)
Method Detail

getLoggingLevel

public java.lang.String getLoggingLevel()
Specified by:
getLoggingLevel in interface LoggerControllerMBean
Returns:
String representation of used Level
See Also:
LoggerControllerMBean.getLoggingLevel()

setLoggingLevel

public void setLoggingLevel(java.lang.String level)
Description copied from interface: LoggerControllerMBean
set the new logging level to use.

Specified by:
setLoggingLevel in interface LoggerControllerMBean
Parameters:
level - String representation of Level
See Also:
LoggerControllerMBean.setLoggingLevel(java.lang.String)

getName

public java.lang.String getName()
Specified by:
getName in interface LoggerControllerMBean
Returns:
the name of the controlled Logger
See Also:
LoggerControllerMBean.getName()