org.apache.maven.embedder
Class MavenEmbedderLoggerManager
java.lang.Object
org.codehaus.plexus.logging.AbstractLoggerManager
org.apache.maven.embedder.MavenEmbedderLoggerManager
- All Implemented Interfaces:
- org.codehaus.plexus.logging.LoggerManager, org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable
public class MavenEmbedderLoggerManager
- extends org.codehaus.plexus.logging.AbstractLoggerManager
- implements org.codehaus.plexus.logging.LoggerManager, org.codehaus.plexus.personality.plexus.lifecycle.phase.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
- Version:
- $Id: MavenEmbedderLoggerManager.java 292888 2005-10-01 01:17:36Z jvanzyl $
- Author:
- Jason van Zyl, Trygve Laugstøl
Field Summary |
private int |
currentThreshold
|
private org.codehaus.plexus.logging.Logger |
logger
|
private java.lang.String |
threshold
Message of this level or higher will be logged. |
Fields inherited from interface org.codehaus.plexus.logging.LoggerManager |
ROLE |
Methods inherited from class org.codehaus.plexus.logging.AbstractLoggerManager |
getLoggerForComponent, getThreshold, returnComponentLogger, setThreshold, toMapKey |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.codehaus.plexus.logging.LoggerManager |
getLoggerForComponent, getThreshold, returnComponentLogger, setThreshold |
threshold
private java.lang.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.
currentThreshold
private int currentThreshold
logger
private org.codehaus.plexus.logging.Logger logger
MavenEmbedderLoggerManager
public MavenEmbedderLoggerManager(org.codehaus.plexus.logging.Logger logger)
initialize
public void initialize()
- Specified by:
initialize
in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable
setThreshold
public void setThreshold(int currentThreshold)
- Specified by:
setThreshold
in interface org.codehaus.plexus.logging.LoggerManager
getThreshold
public int getThreshold()
- Specified by:
getThreshold
in interface org.codehaus.plexus.logging.LoggerManager
- Returns:
- Returns the threshold.
setThreshold
public void setThreshold(java.lang.String role,
java.lang.String roleHint,
int threshold)
- Specified by:
setThreshold
in interface org.codehaus.plexus.logging.LoggerManager
getThreshold
public int getThreshold(java.lang.String role,
java.lang.String roleHint)
- Specified by:
getThreshold
in interface org.codehaus.plexus.logging.LoggerManager
getLoggerForComponent
public org.codehaus.plexus.logging.Logger getLoggerForComponent(java.lang.String role,
java.lang.String roleHint)
- Specified by:
getLoggerForComponent
in interface org.codehaus.plexus.logging.LoggerManager
returnComponentLogger
public void returnComponentLogger(java.lang.String role,
java.lang.String roleHint)
- Specified by:
returnComponentLogger
in interface org.codehaus.plexus.logging.LoggerManager
getActiveLoggerCount
public int getActiveLoggerCount()
- Specified by:
getActiveLoggerCount
in interface org.codehaus.plexus.logging.LoggerManager
parseThreshold
private int parseThreshold(java.lang.String text)
debug
private void debug(java.lang.String msg)
- Remove this method and all references when this code is verified.
- Parameters:
msg
-