org.codehaus.plexus.logging

Class AbstractLoggerManager

public abstract class AbstractLoggerManager extends Object implements LoggerManager

Version: $Id: AbstractLoggerManager.java 6965 2007-10-21 05:32:27Z jvanzyl $

Author: Jason van Zyl Trygve Laugstøl

Constructor Summary
AbstractLoggerManager()
Method Summary
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 in Map's.

Constructor Detail

AbstractLoggerManager

public AbstractLoggerManager()

Method Detail

getLoggerForComponent

public Logger getLoggerForComponent(String role)

getThreshold

public int getThreshold(String role)

returnComponentLogger

public void returnComponentLogger(String role)

setThreshold

public void setThreshold(String role, int threshold)

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.