|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | 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.
Field Summary |
Fields inherited from interface org.apache.avalon.excalibur.logger.LoggerManager |
ROLE |
Constructor Summary | |
LogKitLoggerManager()
Creates a new DefaultLogKitManager . |
|
LogKitLoggerManager(Hierarchy hierarchy)
Creates a new DefaultLogKitManager with an existing Hierarchy . |
|
LogKitLoggerManager(String prefix)
Creates a new DefaultLogKitManager using
specified logger name as root logger. |
|
LogKitLoggerManager(String prefix,
Hierarchy hierarchy)
Creates a new DefaultLogKitManager with an existing Hierarchy using
specified logger name as root logger. |
|
LogKitLoggerManager(String prefix,
Hierarchy hierarchy,
Logger defaultLogger)
Creates a new DefaultLogKitManager with an existing Hierarchy using
specified logger name as root logger. |
|
LogKitLoggerManager(String prefix,
Hierarchy hierarchy,
Logger defaultLogger,
Logger logger)
Creates a new DefaultLogKitManager with an existing Hierarchy using
specified logger name as root logger. |
Method Summary | |
void |
configure(Configuration configuration)
Reads a configuration object and creates the category mapping. |
void |
contextualize(Context context)
Reads a context object that will be supplied to the log target factory manager. |
void |
enableLogging(Logger logger)
Provide a logger. |
Logger |
getDefaultLogger()
Return the default Logger. |
Logger |
getLoggerForCategory(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(Hierarchy hierarchy)
DefaultLogKitManager
with an existing Hierarchy
.
public LogKitLoggerManager(String prefix)
DefaultLogKitManager
using
specified logger name as root logger.
public LogKitLoggerManager(String prefix, Hierarchy hierarchy)
DefaultLogKitManager
with an existing Hierarchy
using
specified logger name as root logger.
public LogKitLoggerManager(String prefix, Hierarchy hierarchy, Logger defaultLogger)
DefaultLogKitManager
with an existing Hierarchy
using
specified logger name as root logger.
public LogKitLoggerManager(String prefix, Hierarchy hierarchy, Logger defaultLogger, Logger logger)
DefaultLogKitManager
with an existing Hierarchy
using
specified logger name as root logger.
Method Detail |
public void enableLogging(Logger logger)
enableLogging
in interface LogEnabled
logger
- the loggerpublic final Logger getLoggerForCategory(String categoryName)
getLoggerForCategory
in interface LoggerManager
categoryName
- The category name of a configured Logger.
public final Logger getDefaultLogger()
LoggerManager
getDefaultLogger
in interface LoggerManager
public final void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
context
- The context object.
ContextException
- if the context is malformedpublic final void configure(Configuration configuration) throws ConfigurationException
configure
in interface Configurable
configuration
- The configuration object.
ConfigurationException
- if the configuration is malformed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |