|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.apache.avalon.excalibur.logger.LogKitLoggerManager
LogKitLoggerManager implementation. It populates the LoggerManager from a configuration file.
| Constructor Summary | |
LogKitLoggerManager()
Creates a new DefaultLogKitManager. |
|
LogKitLoggerManager(org.apache.log.Hierarchy hierarchy)
Creates a new DefaultLogKitManager with an existing Hierarchy. |
|
LogKitLoggerManager(java.lang.String prefix)
Creates a new DefaultLogKitManager using
specified logger name as root logger. |
|
LogKitLoggerManager(java.lang.String prefix,
org.apache.log.Hierarchy hierarchy)
Creates a new DefaultLogKitManager with an existing Hierarchy using
specified logger name as root logger. |
|
LogKitLoggerManager(java.lang.String prefix,
org.apache.log.Hierarchy hierarchy,
org.apache.avalon.framework.logger.Logger defaultLogger)
Creates a new DefaultLogKitManager with an existing Hierarchy using
specified logger name as root logger. |
|
| Method Summary | |
void |
configure(org.apache.avalon.framework.configuration.Configuration configuration)
Reads a configuration object and creates the category mapping. |
void |
contextualize(org.apache.avalon.framework.context.Context context)
Reads a context object. |
org.apache.avalon.framework.logger.Logger |
getDefaultLogger()
Return the default Logger. |
org.apache.avalon.framework.logger.Logger |
getLoggerForCategory(java.lang.String categoryName)
Retrieves a Logger from a category name. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LogKitLoggerManager()
DefaultLogKitManager. It will use a new Hierarchy.public LogKitLoggerManager(org.apache.log.Hierarchy hierarchy)
DefaultLogKitManager with an existing Hierarchy.public LogKitLoggerManager(java.lang.String prefix)
DefaultLogKitManager using
specified logger name as root logger.
public LogKitLoggerManager(java.lang.String prefix,
org.apache.log.Hierarchy hierarchy)
DefaultLogKitManager with an existing Hierarchy using
specified logger name as root logger.
public LogKitLoggerManager(java.lang.String prefix,
org.apache.log.Hierarchy hierarchy,
org.apache.avalon.framework.logger.Logger defaultLogger)
DefaultLogKitManager with an existing Hierarchy using
specified logger name as root logger.| Method Detail |
public final org.apache.avalon.framework.logger.Logger getLoggerForCategory(java.lang.String categoryName)
getLoggerForCategory in interface LoggerManagercategoryName - The category name of a configured Logger.public final org.apache.avalon.framework.logger.Logger getDefaultLogger()
LoggerManagergetDefaultLogger in interface LoggerManager
public final void contextualize(org.apache.avalon.framework.context.Context context)
throws org.apache.avalon.framework.context.ContextException
contextualize in interface org.apache.avalon.framework.context.Contextualizablecontext - The context object.org.apache.avalon.framework.context.ContextException - if the context is malformed
public final void configure(org.apache.avalon.framework.configuration.Configuration configuration)
throws org.apache.avalon.framework.configuration.ConfigurationException
configure in interface org.apache.avalon.framework.configuration.Configurableconfiguration - The configuration object.org.apache.avalon.framework.configuration.ConfigurationException - if the configuration is malformed
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||