Package org.codehaus.plexus.logging
Interface LoggerManager
-
- All Known Implementing Classes:
AbstractLoggerManager
,BaseLoggerManager
,ConsoleLoggerManager
public interface LoggerManager
- Author:
- Jason van Zyl, Trygve Laugstøl
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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(int threshold)
Sets the threshold for all new loggers.void
setThreshold(String role, int threshold)
void
setThreshold(String role, String roleHint, int threshold)
void
setThresholds(int threshold)
Sets the threshold for all loggers.
-
-
-
Field Detail
-
ROLE
static final String ROLE
-
-
Method Detail
-
setThreshold
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
int getThreshold()
Returns the current threshold for all new loggers.- Returns:
- Returns the current threshold for all new loggers.
-
setThresholds
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.
-
setThreshold
void setThreshold(String role, int threshold)
-
getThreshold
int getThreshold(String role)
-
returnComponentLogger
void returnComponentLogger(String role)
-
getActiveLoggerCount
int getActiveLoggerCount()
-
-