org.codehaus.plexus.logging
Class BaseLoggerManager
java.lang.Object
org.codehaus.plexus.logging.AbstractLoggerManager
org.codehaus.plexus.logging.BaseLoggerManager
- All Implemented Interfaces:
- org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable, org.codehaus.plexus.logging.LoggerManager
- public abstract class BaseLoggerManager
- extends org.codehaus.plexus.logging.AbstractLoggerManager
- implements org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable
Base class for all LoggerManagers which use cache of Loggers.
- Version:
- $Id: BaseLoggerManager.java 4779 2006-11-23 04:09:31Z jvanzyl $
- Author:
- Michal Maczka
Fields inherited from interface org.codehaus.plexus.logging.LoggerManager |
ROLE |
Methods inherited from class org.codehaus.plexus.logging.AbstractLoggerManager |
getLoggerForComponent, getThreshold, returnComponentLogger, setThreshold, toMapKey |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseLoggerManager
public BaseLoggerManager()
initialize
public void initialize()
- Specified by:
initialize
in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable
parseThreshold
protected int parseThreshold(java.lang.String text)
setThreshold
public void setThreshold(int currentThreshold)
- 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 org.codehaus.plexus.logging.LoggerManager
- Parameters:
currentThreshold
- The new threshold.
setThresholds
public void setThresholds(int currentThreshold)
- 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:
setThresholds
in interface org.codehaus.plexus.logging.LoggerManager
- Parameters:
currentThreshold
- The new threshold.
getThreshold
public int getThreshold()
- Returns the current threshold for all new loggers.
- Specified by:
getThreshold
in interface org.codehaus.plexus.logging.LoggerManager
- Returns:
- Returns the current threshold for all new loggers.
setThreshold
public void setThreshold(java.lang.String role,
java.lang.String roleHint,
int threshold)
- Specified by:
setThreshold
in interface org.codehaus.plexus.logging.LoggerManager
getThreshold
public int getThreshold(java.lang.String role,
java.lang.String roleHint)
- Specified by:
getThreshold
in interface org.codehaus.plexus.logging.LoggerManager
getLoggerForComponent
public org.codehaus.plexus.logging.Logger getLoggerForComponent(java.lang.String role,
java.lang.String roleHint)
- Specified by:
getLoggerForComponent
in interface org.codehaus.plexus.logging.LoggerManager
createLogger
protected abstract org.codehaus.plexus.logging.Logger createLogger(java.lang.String key)
returnComponentLogger
public void returnComponentLogger(java.lang.String role,
java.lang.String roleHint)
- Specified by:
returnComponentLogger
in interface org.codehaus.plexus.logging.LoggerManager
getActiveLoggerCount
public int getActiveLoggerCount()
- Specified by:
getActiveLoggerCount
in interface org.codehaus.plexus.logging.LoggerManager
getThresholdAsString
public java.lang.String getThresholdAsString()
Copyright © 2001-2007 Codehaus. All Rights Reserved.