|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.avalon.excalibur.logger.logkit.LogKitAdapter
This class sits on top of an existing LogKit Hierarchy and returns logger wrapping LogKit loggers. Attach PrefixDecorator and/or CachingDecorator if desired.
| Field Summary | |
protected Hierarchy |
m_hierarchy
The hierarchy that really produces loggers. |
| Fields inherited from interface org.apache.avalon.excalibur.logger.LoggerManager |
ROLE |
| Constructor Summary | |
LogKitAdapter(Hierarchy hierarchy)
Initialized LogKitAdapter to operate
of a certain LogKit Hierarchy. |
|
| 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.framework.logger.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected final Hierarchy m_hierarchy
| Constructor Detail |
public LogKitAdapter(Hierarchy hierarchy)
LogKitAdapter to operate
of a certain LogKit Hierarchy.
| Method Detail |
public Logger getLoggerForCategory(java.lang.String categoryName)
In LogKit getRootLogger() and getLoggerFor("") unless the logger for category "" has been explicitly configured return identically configured but different loggers.
Our LogKitConfHelper configures getRootLogger(), not getLoggerFor(""). We think this is a reasonable behavior and expect that LogKit Hierarchies configured by other means then LogKitConfHelper are configured in the same way.
This justifies our decision to return getRootLogger() when given "" category name.
getLoggerForCategory in interface LoggerManagerpublic Logger getDefaultLogger()
getDefaultLogger in interface LoggerManager
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||