Package org.codehaus.plexus.logging
Interface LoggerManager
-
- All Known Implementing Classes:
AbstractLoggerManager,BaseLoggerManager,ConsoleLoggerManager
public interface LoggerManager
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringROLE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetActiveLoggerCount()LoggergetLoggerForComponent(java.lang.String role)LoggergetLoggerForComponent(java.lang.String role, java.lang.String roleHint)intgetThreshold()Returns the current threshold for all new loggers.intgetThreshold(java.lang.String role)intgetThreshold(java.lang.String role, java.lang.String roleHint)voidreturnComponentLogger(java.lang.String role)voidreturnComponentLogger(java.lang.String role, java.lang.String hint)voidsetThreshold(int threshold)Sets the threshold for all new loggers.voidsetThreshold(java.lang.String role, int threshold)voidsetThreshold(java.lang.String role, java.lang.String roleHint, int threshold)voidsetThresholds(int threshold)Sets the threshold for all loggers.
-
-
-
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(java.lang.String role, int threshold)
-
setThreshold
void setThreshold(java.lang.String role, java.lang.String roleHint, int threshold)
-
getThreshold
int getThreshold(java.lang.String role)
-
getThreshold
int getThreshold(java.lang.String role, java.lang.String roleHint)
-
getLoggerForComponent
Logger getLoggerForComponent(java.lang.String role)
-
getLoggerForComponent
Logger getLoggerForComponent(java.lang.String role, java.lang.String roleHint)
-
returnComponentLogger
void returnComponentLogger(java.lang.String role)
-
returnComponentLogger
void returnComponentLogger(java.lang.String role, java.lang.String hint)
-
getActiveLoggerCount
int getActiveLoggerCount()
-
-