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, toMapKey
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLoggerForComponent, getThreshold, returnComponentLogger, setThreshold
public ConsoleLoggerManager()
public ConsoleLoggerManager(String threshold)
threshold
- The 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(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
Copyright © 2001–2019 Codehaus Plexus. All rights reserved.