Package org.codehaus.plexus.logging
Interface LoggerManager
- All Known Implementing Classes:
AbstractLoggerManager,BaseLoggerManager,ConsoleLoggerManager
public interface LoggerManager
- Author:
- Jason van Zyl, Trygve Laugstøl
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionintgetLoggerForComponent(String role) getLoggerForComponent(String role, String roleHint) intReturns 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 Details
-
ROLE
-
-
Method Details
-
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
-
setThreshold
-
getThreshold
-
getThreshold
-
getLoggerForComponent
-
getLoggerForComponent
-
returnComponentLogger
-
returnComponentLogger
-
getActiveLoggerCount
int getActiveLoggerCount()
-