org.codehaus.plexus.logging
Interface LoggerManager

All Known Implementing Classes:
AbstractLoggerManager, ConsoleLoggerManager

public interface LoggerManager

Version:
$Id: LoggerManager.java 1323 2004-12-20 23:00:59Z jvanzyl $
Author:
Jason van Zyl, Trygve Laugstøl

Field Summary
static java.lang.String ROLE
           
 
Method Summary
 int getActiveLoggerCount()
           
 Logger getLoggerForComponent(java.lang.String role)
           
 Logger getLoggerForComponent(java.lang.String role, java.lang.String roleHint)
           
 int getThreshold()
          Returns the current threshold for all new loggers.
 int getThreshold(java.lang.String role)
           
 int getThreshold(java.lang.String role, java.lang.String roleHint)
           
 void returnComponentLogger(java.lang.String role)
           
 void returnComponentLogger(java.lang.String role, java.lang.String hint)
           
 void setThreshold(int threshold)
          Sets the threshold for all new loggers.
 void setThreshold(java.lang.String role, int threshold)
           
 void setThreshold(java.lang.String role, java.lang.String roleHint, int threshold)
           
 

Field Detail

ROLE

public static final java.lang.String ROLE
Method Detail

setThreshold

public void setThreshold(int threshold)
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.

Parameters:
threshold - The new threshold.

getThreshold

public int getThreshold()
Returns the current threshold for all new loggers.

Returns:
Returns the current threshold for all new loggers.

setThreshold

public void setThreshold(java.lang.String role,
                         int threshold)

setThreshold

public void setThreshold(java.lang.String role,
                         java.lang.String roleHint,
                         int threshold)

getThreshold

public int getThreshold(java.lang.String role)

getThreshold

public int getThreshold(java.lang.String role,
                        java.lang.String roleHint)

getLoggerForComponent

public Logger getLoggerForComponent(java.lang.String role)

getLoggerForComponent

public Logger getLoggerForComponent(java.lang.String role,
                                    java.lang.String roleHint)

returnComponentLogger

public void returnComponentLogger(java.lang.String role)

returnComponentLogger

public void returnComponentLogger(java.lang.String role,
                                  java.lang.String hint)

getActiveLoggerCount

public int getActiveLoggerCount()


Copyright © 2001-2007 Codehaus. All Rights Reserved.