public class ConsoleLoggerManager extends AbstractLoggerManager implements LoggerManager, Initializable
org.codehaus.plexus.logging.ConsoleLoggerManager DEBUG
Modifier and Type | Field and Description |
---|---|
private boolean |
bootTimeLogger |
private int |
currentThreshold |
private int |
loggerCount
The number of active loggers in use.
|
private java.util.Map |
loggers |
private java.lang.String |
threshold
Message of this level or higher will be logged.
|
ROLE
Constructor and Description |
---|
ConsoleLoggerManager() |
ConsoleLoggerManager(java.lang.String threshold)
This special constructor is called directly when the container is bootstrapping itself.
|
Modifier and Type | Method and Description |
---|---|
Logger |
createLogger(int threshold,
java.lang.String name) |
private void |
debug(java.lang.String msg)
Remove this method and all references when this code is verified.
|
private java.lang.String |
decodeLogLevel(int logLevel) |
int |
getActiveLoggerCount() |
Logger |
getLoggerForComponent(java.lang.String role,
java.lang.String roleHint) |
int |
getThreshold()
Returns the current threshold for all new loggers.
|
int |
getThreshold(java.lang.String role,
java.lang.String roleHint) |
void |
initialize() |
private int |
parseThreshold(java.lang.String text) |
void |
returnComponentLogger(java.lang.String role,
java.lang.String roleHint) |
void |
setThreshold(int currentThreshold)
Sets the threshold for all new loggers.
|
void |
setThreshold(java.lang.String role,
java.lang.String roleHint,
int threshold) |
void |
setThresholds(int currentThreshold)
Sets the threshold for all loggers.
|
getLoggerForComponent, getThreshold, returnComponentLogger, setThreshold, toMapKey
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLoggerForComponent, getThreshold, returnComponentLogger, setThreshold
private java.lang.String threshold
private int currentThreshold
private java.util.Map loggers
private int loggerCount
private boolean bootTimeLogger
public ConsoleLoggerManager()
public ConsoleLoggerManager(java.lang.String threshold)
public void initialize()
initialize
in interface Initializable
public void setThreshold(int currentThreshold)
LoggerManager
setThreshold
in interface LoggerManager
currentThreshold
- The new threshold.public void setThresholds(int currentThreshold)
LoggerManager
setThresholds
in interface LoggerManager
currentThreshold
- The new threshold.public int getThreshold()
LoggerManager
getThreshold
in interface LoggerManager
public void setThreshold(java.lang.String role, java.lang.String roleHint, int threshold)
setThreshold
in interface LoggerManager
public int getThreshold(java.lang.String role, java.lang.String roleHint)
getThreshold
in interface LoggerManager
public Logger createLogger(int threshold, java.lang.String name)
public Logger getLoggerForComponent(java.lang.String role, java.lang.String roleHint)
getLoggerForComponent
in interface LoggerManager
public void returnComponentLogger(java.lang.String role, java.lang.String roleHint)
returnComponentLogger
in interface LoggerManager
public int getActiveLoggerCount()
getActiveLoggerCount
in interface LoggerManager
private int parseThreshold(java.lang.String text)
private java.lang.String decodeLogLevel(int logLevel)
private void debug(java.lang.String msg)
msg
-