public class ConsoleLoggerManager extends AbstractLoggerManager implements LoggerManager, Initializable
<logging>
<implementation>org.codehaus.plexus.logging.ConsoleLoggerManager</implementation>
<logger>
<threshold>DEBUG</threshold>
</logger>
</logging>
ROLE| Constructor and Description |
|---|
ConsoleLoggerManager() |
ConsoleLoggerManager(String threshold)
This special constructor is called directly when the container is bootstrapping itself.
|
| Modifier and Type | Method and Description |
|---|---|
Logger |
createLogger(int threshold,
String name) |
int |
getActiveLoggerCount() |
Logger |
getLoggerForComponent(String role,
String roleHint) |
int |
getThreshold()
Returns the current threshold for all new loggers.
|
int |
getThreshold(String role,
String roleHint) |
void |
initialize() |
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 loggers.
|
getLoggerForComponent, getThreshold, returnComponentLogger, setThreshold, toMapKeyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLoggerForComponent, getThreshold, returnComponentLogger, setThresholdpublic ConsoleLoggerManager()
public ConsoleLoggerManager(String threshold)
threshold - The threshold.public void initialize()
initialize in interface Initializablepublic void setThreshold(int currentThreshold)
LoggerManagersetThreshold in interface LoggerManagercurrentThreshold - The new threshold.public void setThresholds(int currentThreshold)
LoggerManagersetThresholds in interface LoggerManagercurrentThreshold - The new threshold.public int getThreshold()
LoggerManagergetThreshold 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 LoggerManagerCopyright © 2001–2019 Codehaus Plexus. All rights reserved.