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:
org.codehaus.plexus.logging.LoggerManager, org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable

public class MavenLoggerManager
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
   
 
 

Author:
Jason van Zyl, Trygve Laugstøl

Field Summary
 
Fields inherited from interface org.codehaus.plexus.logging.LoggerManager
ROLE
 
Constructor Summary
MavenLoggerManager(org.codehaus.plexus.logging.Logger logger)
           
 
Method Summary
 int getActiveLoggerCount()
           
 org.codehaus.plexus.logging.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(org.codehaus.plexus.logging.Logger logger)
Method Detail

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

setThresholds

public void setThresholds(int currentThreshold)
Specified by:
setThresholds 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(String role,
                         String roleHint,
                         int threshold)

getThreshold

public int getThreshold(String role,
                        String roleHint)

getLoggerForComponent

public org.codehaus.plexus.logging.Logger getLoggerForComponent(String role,
                                                                String roleHint)
Specified by:
getLoggerForComponent in interface org.codehaus.plexus.logging.LoggerManager

returnComponentLogger

public void returnComponentLogger(String role,
                                  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


Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.