|
||||||||||
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.DefaultLogKitManager
public class DefaultLogKitManager
Default LogManager implementation. It populates the LogManager from a configuration file.
Field Summary | |
---|---|
private org.apache.avalon.framework.context.Context |
m_context
Deprecated. The context object |
private org.apache.log.Hierarchy |
m_hierarchy
Deprecated. The hierarchy private to LogKitManager |
private java.util.Map |
m_loggers
Deprecated. Map for name to logger mapping |
private java.lang.String |
m_prefix
Deprecated. The root logger to configure |
Constructor Summary | |
---|---|
DefaultLogKitManager()
Deprecated. Creates a new DefaultLogKitManager . |
|
DefaultLogKitManager(org.apache.log.Hierarchy hierarchy)
Deprecated. Creates a new DefaultLogKitManager with an existing Hierarchy . |
|
DefaultLogKitManager(java.lang.String prefix)
Deprecated. Creates a new DefaultLogKitManager using
specified logger name as root logger. |
|
DefaultLogKitManager(java.lang.String prefix,
org.apache.log.Hierarchy hierarchy)
Deprecated. 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)
Deprecated. Reads a configuration object and creates the category mapping. |
void |
contextualize(org.apache.avalon.framework.context.Context context)
Deprecated. Reads a context object. |
org.apache.log.Hierarchy |
getHierarchy()
Deprecated. Retrieve Hierarchy for Loggers configured by the system. |
org.apache.log.Logger |
getLogger(java.lang.String categoryName)
Deprecated. Retrieves a Logger from a category name. |
void |
setLogger(org.apache.log.Logger logger)
Deprecated. |
private void |
setupLoggers(LogTargetManager targetManager,
java.lang.String parentCategory,
org.apache.avalon.framework.configuration.Configuration[] categories)
Deprecated. Setup Loggers |
private LogTargetFactoryManager |
setupTargetFactoryManager(org.apache.avalon.framework.configuration.Configuration configuration)
Deprecated. Setup a LogTargetFactoryManager |
private LogTargetManager |
setupTargetManager(org.apache.avalon.framework.configuration.Configuration configuration,
LogTargetFactoryManager targetFactoryManager)
Deprecated. Setup a LogTargetManager |
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 |
---|
private final java.util.Map m_loggers
private org.apache.avalon.framework.context.Context m_context
private org.apache.log.Hierarchy m_hierarchy
private java.lang.String m_prefix
Constructor Detail |
---|
public DefaultLogKitManager()
DefaultLogKitManager
. It will use a new Hierarchy
.
public DefaultLogKitManager(org.apache.log.Hierarchy hierarchy)
DefaultLogKitManager
with an existing Hierarchy
.
public DefaultLogKitManager(java.lang.String prefix)
DefaultLogKitManager
using
specified logger name as root logger.
public DefaultLogKitManager(java.lang.String prefix, org.apache.log.Hierarchy hierarchy)
DefaultLogKitManager
with an existing Hierarchy
using
specified logger name as root logger.
Method Detail |
---|
public void setLogger(org.apache.log.Logger logger)
setLogger
in interface org.apache.avalon.framework.logger.Loggable
public final org.apache.log.Logger getLogger(java.lang.String categoryName)
getLogger
in interface LogKitManager
categoryName
- The category name of a configured Logger.
public org.apache.log.Hierarchy getHierarchy()
getHierarchy
in interface LogKitManager
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.Contextualizable
context
- The context object.
org.apache.avalon.framework.context.ContextException
- if the context is malformedpublic final void configure(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException
<categories/>
element has an attribute
named debug
, it will try to load a configuration file
specified by that attribute. The contents of that configuration
file will be the same as the <categories/>
element.
configure
in interface org.apache.avalon.framework.configuration.Configurable
configuration
- The configuration object.
org.apache.avalon.framework.configuration.ConfigurationException
- if the configuration is malformedprivate final LogTargetFactoryManager setupTargetFactoryManager(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException
configuration
- The configuration object.
org.apache.avalon.framework.configuration.ConfigurationException
- if the configuration is malformedprivate final LogTargetManager setupTargetManager(org.apache.avalon.framework.configuration.Configuration configuration, LogTargetFactoryManager targetFactoryManager) throws org.apache.avalon.framework.configuration.ConfigurationException
configuration
- The configuration object.
org.apache.avalon.framework.configuration.ConfigurationException
- if the configuration is malformedprivate final void setupLoggers(LogTargetManager targetManager, java.lang.String parentCategory, org.apache.avalon.framework.configuration.Configuration[] categories) throws org.apache.avalon.framework.configuration.ConfigurationException
categories
- The array object of configurations for categories.
org.apache.avalon.framework.configuration.ConfigurationException
- if the configuration is malformed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |