org.apache.maven.cli
Class MavenLoggerManager
java.lang.Object
org.codehaus.plexus.logging.AbstractLoggerManager
org.apache.maven.cli.MavenLoggerManager
- All Implemented Interfaces:
- LoggerManager, Initializable
public class MavenLoggerManager
- extends AbstractLoggerManager
- implements LoggerManager, Initializable
This is a simple logger manager that will only write the logging statements to the console.
Sample configuration:
org.codehaus.plexus.logging.ConsoleLoggerManager
DEBUG
- Author:
- Jason van Zyl, Trygve Laugstøl
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MavenLoggerManager
public MavenLoggerManager(Logger logger)
initialize
public void initialize()
- Specified by:
initialize
in interface Initializable
setThreshold
public void setThreshold(int currentThreshold)
- Specified by:
setThreshold
in interface LoggerManager
setThresholds
public void setThresholds(int currentThreshold)
- Specified by:
setThresholds
in interface LoggerManager
getThreshold
public int getThreshold()
- Specified by:
getThreshold
in interface LoggerManager
- Returns:
- Returns the threshold.
setThreshold
public void setThreshold(String role,
String roleHint,
int threshold)
getThreshold
public int getThreshold(String role,
String roleHint)
getLoggerForComponent
public Logger getLoggerForComponent(String role,
String roleHint)
- Specified by:
getLoggerForComponent
in interface LoggerManager
returnComponentLogger
public void returnComponentLogger(String role,
String roleHint)
- Specified by:
returnComponentLogger
in interface LoggerManager
getActiveLoggerCount
public int getActiveLoggerCount()
- Specified by:
getActiveLoggerCount
in interface LoggerManager
Copyright © 2001-2011 The Apache Software Foundation. All Rights Reserved.