org.codehaus.plexus.logging.console
Class ConsoleLoggerManager
java.lang.Object
org.codehaus.plexus.logging.AbstractLoggerManager
org.codehaus.plexus.logging.console.ConsoleLoggerManager
- All Implemented Interfaces:
- LoggerManager, Initializable
public class ConsoleLoggerManager
- extends AbstractLoggerManager
- implements LoggerManager, Initializable
This is a simple logger manager that will only write the logging statements to the console.
Sample configuration:
org.codehaus.plexus.logging.ConsoleLoggerManager
DEBUG
- Version:
- $Id: ConsoleLoggerManager.java 7789 2008-10-13 22:54:22Z bentmann $
- Author:
- Jason van Zyl, Trygve Laugstøl
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConsoleLoggerManager
public ConsoleLoggerManager()
ConsoleLoggerManager
public ConsoleLoggerManager(java.lang.String threshold)
- This special constructor is called directly when the container is bootstrapping itself.
initialize
public void initialize()
- Specified by:
initialize
in interface Initializable
setThreshold
public void setThreshold(int currentThreshold)
- Description copied from interface:
LoggerManager
- Sets the threshold for all new loggers. It will NOT affect the existing loggers.
This is usually only set once while the logger manager is configured.
- Specified by:
setThreshold
in interface LoggerManager
- Parameters:
currentThreshold
- The new threshold.
setThresholds
public void setThresholds(int currentThreshold)
- Description copied from interface:
LoggerManager
- Sets the threshold for all loggers. It affects all the existing loggers
as well as future loggers.
- Specified by:
setThresholds
in interface LoggerManager
- Parameters:
currentThreshold
- The new threshold.
getThreshold
public int getThreshold()
- Description copied from interface:
LoggerManager
- Returns the current threshold for all new loggers.
- Specified by:
getThreshold
in interface LoggerManager
- Returns:
- Returns the threshold.
setThreshold
public void setThreshold(java.lang.String role,
java.lang.String roleHint,
int threshold)
- Specified by:
setThreshold
in interface LoggerManager
getThreshold
public int getThreshold(java.lang.String role,
java.lang.String roleHint)
- Specified by:
getThreshold
in interface LoggerManager
createLogger
public Logger createLogger(int threshold,
java.lang.String name)
getLoggerForComponent
public Logger getLoggerForComponent(java.lang.String role,
java.lang.String roleHint)
- Specified by:
getLoggerForComponent
in interface LoggerManager
returnComponentLogger
public void returnComponentLogger(java.lang.String role,
java.lang.String roleHint)
- Specified by:
returnComponentLogger
in interface LoggerManager
getActiveLoggerCount
public int getActiveLoggerCount()
- Specified by:
getActiveLoggerCount
in interface LoggerManager
Copyright © 2001-2008 Codehaus. All Rights Reserved.