org.codehaus.plexus.logging

Interface LoggerManager

Known Implementing Classes:
AbstractLoggerManager

public interface LoggerManager

Version:
$Id: LoggerManager.java 4796 2006-11-23 21:24:11Z jvanzyl $
Authors:
Jason van Zyl
Trygve Laugstøl

Field Summary

static String
ROLE

Method Summary

int
getActiveLoggerCount()
Logger
getLoggerForComponent(String role)
Logger
getLoggerForComponent(String role, String roleHint)
int
getThreshold()
Returns the current threshold for all new loggers.
int
getThreshold(String role)
int
getThreshold(String role, String roleHint)
void
returnComponentLogger(String role)
void
returnComponentLogger(String role, String hint)
void
setThreshold(String role, String roleHint, int threshold)
void
setThreshold(String role, int threshold)
void
setThreshold(int threshold)
Sets the threshold for all new loggers.
void
setThresholds(int threshold)
Sets the threshold for all loggers.

Field Details

ROLE

public static final String ROLE

Method Details

getActiveLoggerCount

public int getActiveLoggerCount()

getLoggerForComponent

public Logger getLoggerForComponent(String role)

getLoggerForComponent

public Logger getLoggerForComponent(String role,
                                    String roleHint)

getThreshold

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

getThreshold

public int getThreshold(String role)

getThreshold

public int getThreshold(String role,
                        String roleHint)

returnComponentLogger

public void returnComponentLogger(String role)

returnComponentLogger

public void returnComponentLogger(String role,
                                  String hint)

setThreshold

public void setThreshold(String role,
                         String roleHint,
                         int threshold)

setThreshold

public void setThreshold(String role,
                         int threshold)

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.

setThresholds

public void setThresholds(int threshold)
Sets the threshold for all loggers. It affects all the existing loggers as well as future loggers.
Parameters:
threshold - The new threshold.