Package org.codehaus.plexus.logging
Class AbstractLoggerManager
- java.lang.Object
-
- org.codehaus.plexus.logging.AbstractLoggerManager
-
- All Implemented Interfaces:
LoggerManager
- Direct Known Subclasses:
BaseLoggerManager,ConsoleLoggerManager
public abstract class AbstractLoggerManager extends Object implements LoggerManager
- Author:
- Jason van Zyl, Trygve Laugstøl
-
-
Field Summary
-
Fields inherited from interface org.codehaus.plexus.logging.LoggerManager
ROLE
-
-
Constructor Summary
Constructors Constructor Description AbstractLoggerManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LoggergetLoggerForComponent(String role)intgetThreshold(String role)voidreturnComponentLogger(String role)voidsetThreshold(String role, int threshold)protected StringtoMapKey(String role, String roleHint)Creates a string key useful as keys inMap's.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.codehaus.plexus.logging.LoggerManager
getActiveLoggerCount, getLoggerForComponent, getThreshold, getThreshold, returnComponentLogger, setThreshold, setThreshold, setThresholds
-
-
-
-
Method Detail
-
setThreshold
public void setThreshold(String role, int threshold)
- Specified by:
setThresholdin interfaceLoggerManager
-
getThreshold
public int getThreshold(String role)
- Specified by:
getThresholdin interfaceLoggerManager
-
getLoggerForComponent
public Logger getLoggerForComponent(String role)
- Specified by:
getLoggerForComponentin interfaceLoggerManager
-
returnComponentLogger
public void returnComponentLogger(String role)
- Specified by:
returnComponentLoggerin interfaceLoggerManager
-
-