org.codehaus.plexus.logging.console
Class ConsoleLoggerManager

java.lang.Object
  extended byorg.codehaus.plexus.logging.console.ConsoleLoggerManager
All Implemented Interfaces:
LoggerManager

public class ConsoleLoggerManager
extends java.lang.Object
implements LoggerManager

Sample configuration.

 
   org.codehaus.plexus.logging.ConsoleLoggerManager
   
     DEBUG
   
 
 


Field Summary
private  ConsoleLogger consoleLogger
          The console logger used by the manager.
private static java.lang.String LOGGER_TAG
          XML element used to start the logger configuration.
private static java.lang.String THRESHOLD_TAG
          XML element used to set the threshold of the console logger.
private  int thresholdLevel
          Message of this level or higher will be logged.
 
Constructor Summary
ConsoleLoggerManager()
           
 
Method Summary
 void configure(PlexusConfiguration configuration)
           
 Logger getLogger(java.lang.String name)
           
 Logger getRootLogger()
           
 void initialize()
           
private  void setThresholdLevel(java.lang.String text)
          Sets the threshold for the console logger created by this manager.
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGGER_TAG

private static final java.lang.String LOGGER_TAG
XML element used to start the logger configuration.

See Also:
Constant Field Values

THRESHOLD_TAG

private static final java.lang.String THRESHOLD_TAG
XML element used to set the threshold of the console logger.

See Also:
Constant Field Values

thresholdLevel

private int thresholdLevel
Message of this level or higher will be logged.


consoleLogger

private ConsoleLogger consoleLogger
The console logger used by the manager.

Constructor Detail

ConsoleLoggerManager

public ConsoleLoggerManager()
Method Detail

configure

public void configure(PlexusConfiguration configuration)
Specified by:
configure in interface LoggerManager

initialize

public void initialize()
                throws java.lang.Exception
Specified by:
initialize in interface LoggerManager
Throws:
java.lang.Exception

start

public void start()
           throws java.lang.Exception
Specified by:
start in interface LoggerManager
Throws:
java.lang.Exception

stop

public void stop()
Specified by:
stop in interface LoggerManager

getRootLogger

public Logger getRootLogger()
Specified by:
getRootLogger in interface LoggerManager

getLogger

public Logger getLogger(java.lang.String name)
Specified by:
getLogger in interface LoggerManager

setThresholdLevel

private void setThresholdLevel(java.lang.String text)
Sets the threshold for the console logger created by this manager.

Parameters:
text - The threshold level specified as a string which can be one of the following: debug, info, warn, error, fatal, disabled.