org.codehaus.plexus.logging.console
Class ConsoleLoggerManager
- Initializable, LoggerManager
public class ConsoleLoggerManager
This is a simple logger manager that will only write the logging statements to the console.
Sample configuration:
org.codehaus.plexus.logging.ConsoleLoggerManager
DEBUG
$Id: ConsoleLoggerManager.java 1323 2004-12-20 23:00:59Z jvanzyl $
bootTimeLogger
private boolean bootTimeLogger
currentThreshold
private int currentThreshold
loggerCount
private int loggerCount
The number of active loggers in use.
loggers
private Map loggers
threshold
private String threshold
Message of this level or higher will be logged.
This field is set by the plexus container thus the name is 'threshold'. The field
currentThreshold contains the current setting of the threshold.
ConsoleLoggerManager
public ConsoleLoggerManager()
ConsoleLoggerManager
public ConsoleLoggerManager(String threshold)
This special constructor is called directly when the container is bootstrapping itself.
debug
private void debug(String msg)
Remove this method and all references when this code is verified.
decodeLogLevel
private String decodeLogLevel(int logLevel)
parseThreshold
private int parseThreshold(String text)
setThreshold
public void setThreshold(int currentThreshold)
Sets the threshold for all new loggers. It will NOT affect the existing loggers.
This is usually only set once while the logger manager is configured.
- setThreshold in interface LoggerManager