org.apache.avalon.excalibur.logger
クラス LogKitLoggerManager

java.lang.Object
  |
  +--org.apache.avalon.excalibur.logger.LogKitLoggerManager
すべての実装インタフェース:
org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.context.Contextualizable, LoggerManager

public class LogKitLoggerManager
extends java.lang.Object
implements LoggerManager, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.configuration.Configurable

LogKitLoggerManager implementation. It populates the LoggerManager from a configuration file.

導入されたバージョン:
4.0
バージョン:
CVS $Revision: 1.1 $ $Date: 2002/01/17 20:44:59 $
作成者:
Giacomo Pati, Berin Loritsch

コンストラクタの概要
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.
 
メソッドの概要
 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.
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

LogKitLoggerManager

public LogKitLoggerManager()
Creates a new DefaultLogKitManager. It will use a new Hierarchy.

LogKitLoggerManager

public LogKitLoggerManager(org.apache.log.Hierarchy hierarchy)
Creates a new DefaultLogKitManager with an existing Hierarchy.

LogKitLoggerManager

public LogKitLoggerManager(java.lang.String prefix)
Creates a new DefaultLogKitManager using specified logger name as root logger.

LogKitLoggerManager

public 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

public 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.
メソッドの詳細

getLoggerForCategory

public final org.apache.avalon.framework.logger.Logger getLoggerForCategory(java.lang.String categoryName)
Retrieves a Logger from a category name. Usually the category name refers to a configuration attribute name. If this LogKitManager does not have the match the default Logger will be returned and a warning is issued.
定義:
インタフェース LoggerManager 内の getLoggerForCategory
パラメータ:
categoryName - The category name of a configured Logger.
戻り値:
the Logger.

getDefaultLogger

public final org.apache.avalon.framework.logger.Logger getDefaultLogger()
インタフェース LoggerManager の記述:
Return the default Logger. This is basically the same as getting the Logger for the "" category.
定義:
インタフェース LoggerManager 内の getDefaultLogger

contextualize

public final void contextualize(org.apache.avalon.framework.context.Context context)
                         throws org.apache.avalon.framework.context.ContextException
Reads a context object.
定義:
インタフェース org.apache.avalon.framework.context.Contextualizable 内の contextualize
パラメータ:
context - The context object.
例外:
org.apache.avalon.framework.context.ContextException - if the context is malformed

configure

public final void configure(org.apache.avalon.framework.configuration.Configuration configuration)
                     throws org.apache.avalon.framework.configuration.ConfigurationException
Reads a configuration object and creates the category mapping.
定義:
インタフェース org.apache.avalon.framework.configuration.Configurable 内の configure
パラメータ:
configuration - The configuration object.
例外:
org.apache.avalon.framework.configuration.ConfigurationException - if the configuration is malformed


"Copyright ? 2001 Apache Jakarta Project. All Rights Reserved."