public abstract class BaseLoggerManager extends AbstractLoggerManager implements Initializable
ROLE
Constructor and Description |
---|
BaseLoggerManager() |
Modifier and Type | Method and Description |
---|---|
protected abstract Logger |
createLogger(String key) |
int |
getActiveLoggerCount() |
Logger |
getLoggerForComponent(String role,
String roleHint) |
int |
getThreshold()
Returns the current threshold for all new loggers.
|
int |
getThreshold(String role,
String roleHint) |
String |
getThresholdAsString() |
void |
initialize() |
protected int |
parseThreshold(String text) |
void |
returnComponentLogger(String role,
String roleHint) |
void |
setThreshold(int currentThreshold)
Sets the threshold for all new loggers.
|
void |
setThreshold(String role,
String roleHint,
int threshold) |
void |
setThresholds(int currentThreshold)
Sets the threshold for all new loggers.
|
getLoggerForComponent, getThreshold, returnComponentLogger, setThreshold, toMapKey
public void initialize()
initialize
in interface Initializable
protected int parseThreshold(String text)
public void setThreshold(int currentThreshold)
This is usually only set once while the logger manager is configured.
setThreshold
in interface LoggerManager
currentThreshold
- The new threshold.public void setThresholds(int currentThreshold)
This is usually only set once while the logger manager is configured.
setThresholds
in interface LoggerManager
currentThreshold
- The new threshold.public int getThreshold()
getThreshold
in interface LoggerManager
public void setThreshold(String role, String roleHint, int threshold)
setThreshold
in interface LoggerManager
public int getThreshold(String role, String roleHint)
getThreshold
in interface LoggerManager
public Logger getLoggerForComponent(String role, String roleHint)
getLoggerForComponent
in interface LoggerManager
public void returnComponentLogger(String role, String roleHint)
returnComponentLogger
in interface LoggerManager
public int getActiveLoggerCount()
getActiveLoggerCount
in interface LoggerManager
public String getThresholdAsString()
Copyright © 2001–2019 Codehaus Plexus. All rights reserved.