|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.excalibur.logger.decorator.LoggerManagerDecorator org.apache.avalon.excalibur.logger.decorator.PrefixDecorator
This class implements LoggerManager interface by prepending a prefix to all requests and letting the wrapped LoggerManager actually create the loggers.
Field Summary |
Fields inherited from class org.apache.avalon.excalibur.logger.decorator.LoggerManagerDecorator |
m_loggerManager |
Fields inherited from interface org.apache.avalon.excalibur.logger.LoggerManager |
ROLE |
Constructor Summary | |
PrefixDecorator(LoggerManager loggerManager,
java.lang.String prefix)
Creates a PrefixDecorator instance. |
Method Summary | |
Logger |
getDefaultLogger()
Return the default Logger. |
Logger |
getLoggerForCategory(java.lang.String categoryName)
Return the Logger for the specified category. |
Methods inherited from class org.apache.avalon.excalibur.logger.decorator.LoggerManagerDecorator |
configure, contextualize, dispose, enableLogging, start, stop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PrefixDecorator(LoggerManager loggerManager, java.lang.String prefix)
prefix
- the prefix to prepend;
can be neither null nor empty.
This is done to avoid ambiguity
in the getDefaultLogger() method - what would we call
in such case getDefaultLogger() or getLoggerForCategory("") ?Method Detail |
public Logger getLoggerForCategory(java.lang.String categoryName)
getLoggerForCategory
in interface LoggerManager
getLoggerForCategory
in class LoggerManagerDecorator
public Logger getDefaultLogger()
getDefaultLogger
in interface LoggerManager
getDefaultLogger
in class LoggerManagerDecorator
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |