org.codehaus.plexus.logging
Class BaseLoggerManager
- Initializable, LoggerManager
public abstract class BaseLoggerManager
Base class for all LoggerManagers which use cache of Loggers.
$Id: BaseLoggerManager.java 1750 2005-04-19 07:45:02Z brett $
currentThreshold
private int currentThreshold
loggerCache
private Map loggerCache
threshold
private String threshold
createLogger
protected abstract Logger createLogger(String key)
getThreshold
public int getThreshold()
Returns the current threshold for all new loggers.
- getThreshold in interface LoggerManager
- Returns the current threshold for all new loggers.
getThresholdAsString
public String getThresholdAsString()
parseThreshold
protected int parseThreshold(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.
- setThreshold in interface LoggerManager
currentThreshold
- The new threshold.