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, toMapKeypublic void initialize()
initialize in interface Initializableprotected int parseThreshold(String text)
public void setThreshold(int currentThreshold)
This is usually only set once while the logger manager is configured.
setThreshold in interface LoggerManagercurrentThreshold - The new threshold.public void setThresholds(int currentThreshold)
This is usually only set once while the logger manager is configured.
setThresholds in interface LoggerManagercurrentThreshold - The new threshold.public int getThreshold()
getThreshold in interface LoggerManagerpublic void setThreshold(String role, String roleHint, int threshold)
setThreshold in interface LoggerManagerpublic int getThreshold(String role, String roleHint)
getThreshold in interface LoggerManagerpublic Logger getLoggerForComponent(String role, String roleHint)
getLoggerForComponent in interface LoggerManagerpublic void returnComponentLogger(String role, String roleHint)
returnComponentLogger in interface LoggerManagerpublic int getActiveLoggerCount()
getActiveLoggerCount in interface LoggerManagerpublic String getThresholdAsString()
Copyright © 2001–2019 Codehaus Plexus. All rights reserved.