org.codehaus.plexus.logging

Interface LoggerManager

public interface LoggerManager

Version: $Id: LoggerManager.java 6965 2007-10-21 05:32:27Z jvanzyl $

Author: Jason van Zyl Trygve Laugstøl

Field Summary
StringROLE
Method Summary
intgetActiveLoggerCount()
LoggergetLoggerForComponent(String role)
LoggergetLoggerForComponent(String role, String roleHint)
intgetThreshold()
Returns the current threshold for all new loggers.
intgetThreshold(String role)
intgetThreshold(String role, String roleHint)
voidreturnComponentLogger(String role)
voidreturnComponentLogger(String role, String hint)
voidsetThreshold(int threshold)
Sets the threshold for all new loggers.
voidsetThreshold(String role, int threshold)
voidsetThreshold(String role, String roleHint, int threshold)
voidsetThresholds(int threshold)
Sets the threshold for all loggers.

Field Detail

ROLE

public String ROLE

Method Detail

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(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.

setThreshold

public void setThreshold(String role, int threshold)

setThreshold

public void setThreshold(String role, String roleHint, int 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.