org.codehaus.plexus.logging

Class AbstractLoggerManager

Implemented Interfaces:
LoggerManager
Known Direct Subclasses:
BaseLoggerManager, ConsoleLoggerManager

public abstract class AbstractLoggerManager
extends java.lang.Object
implements LoggerManager

Version:
$Id: AbstractLoggerManager.java 1323 2004-12-20 23:00:59Z jvanzyl $
Authors:
Jason van Zyl
Trygve Laugstøl

Fields inherited from interface org.codehaus.plexus.logging.LoggerManager

ROLE

Constructor Summary

AbstractLoggerManager()

Method Summary

Logger
getLoggerForComponent(String role)
int
getThreshold(String role)
void
returnComponentLogger(String role)
void
setThreshold(String role, int threshold)
protected String
toMapKey(String role, String roleHint)
Creates a string key useful as keys in Map's.

Constructor Details

AbstractLoggerManager

public AbstractLoggerManager()

Method Details

getLoggerForComponent

public Logger getLoggerForComponent(String role)
Specified by:
getLoggerForComponent in interface LoggerManager

getThreshold

public int getThreshold(String role)
Specified by:
getThreshold in interface LoggerManager

returnComponentLogger

public void returnComponentLogger(String role)
Specified by:
returnComponentLogger in interface LoggerManager

setThreshold

public void setThreshold(String role,
                         int threshold)
Specified by:
setThreshold in interface LoggerManager

toMapKey

protected String toMapKey(String role,
                          String roleHint)
Creates a string key useful as keys in Map's.
Parameters:
role - The component role.
roleHint - The component role hint.
Returns:
Returns a string thats useful as a key for components.