org.apache.maven.cli
Class MavenLoggerManager

java.lang.Object
  extended by org.codehaus.plexus.logging.AbstractLoggerManager
      extended by 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

Field Summary
 
Fields inherited from interface org.codehaus.plexus.logging.LoggerManager
ROLE
 
Constructor Summary
MavenLoggerManager(Logger logger)
           
 
Method Summary
 int getActiveLoggerCount()
           
 Logger getLoggerForComponent(String role, String roleHint)
           
 int getThreshold()
           
 int getThreshold(String role, String roleHint)
           
 void initialize()
           
 void returnComponentLogger(String role, String roleHint)
           
 void setThreshold(int currentThreshold)
           
 void setThreshold(String role, String roleHint, int threshold)
           
 void setThresholds(int currentThreshold)
           
 
Methods inherited from class org.codehaus.plexus.logging.AbstractLoggerManager
getLoggerForComponent, returnComponentLogger
 
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, returnComponentLogger
 

Constructor Detail

MavenLoggerManager

public MavenLoggerManager(Logger logger)
Method Detail

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.