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

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

推奨されていません。 we should use the new LogKitLoggerManager interface that directly supports the new framework Logger interface.

public class DefaultLogKitManager
extends org.apache.avalon.framework.logger.AbstractLogEnabled
implements LogKitManager, org.apache.avalon.framework.logger.Loggable, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.configuration.Configurable

Default LogManager implementation. It populates the LogManager from a configuration file.

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

コンストラクタの概要
DefaultLogKitManager()
          推奨されていません。 Creates a new DefaultLogKitManager.
DefaultLogKitManager(org.apache.log.Hierarchy hierarchy)
          推奨されていません。 Creates a new DefaultLogKitManager with an existing Hierarchy.
DefaultLogKitManager(java.lang.String prefix)
          推奨されていません。 Creates a new DefaultLogKitManager using specified logger name as root logger.
DefaultLogKitManager(java.lang.String prefix, org.apache.log.Hierarchy hierarchy)
          推奨されていません。 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.log.Hierarchy getHierarchy()
          推奨されていません。 Retrieve Hierarchy for Loggers configured by the system.
 org.apache.log.Logger getLogger(java.lang.String categoryName)
          推奨されていません。 Retrieves a Logger from a category name.
 void setLogger(org.apache.log.Logger logger)
          推奨されていません。  
 
クラス org.apache.avalon.framework.logger.AbstractLogEnabled から継承したメソッド
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

DefaultLogKitManager

public DefaultLogKitManager()
推奨されていません。 
Creates a new DefaultLogKitManager. It will use a new Hierarchy.

DefaultLogKitManager

public DefaultLogKitManager(org.apache.log.Hierarchy hierarchy)
推奨されていません。 
Creates a new DefaultLogKitManager with an existing Hierarchy.

DefaultLogKitManager

public DefaultLogKitManager(java.lang.String prefix)
推奨されていません。 
Creates a new DefaultLogKitManager using specified logger name as root logger.

DefaultLogKitManager

public DefaultLogKitManager(java.lang.String prefix,
                            org.apache.log.Hierarchy hierarchy)
推奨されていません。 
Creates a new DefaultLogKitManager with an existing Hierarchy using specified logger name as root logger.
メソッドの詳細

setLogger

public void setLogger(org.apache.log.Logger logger)
推奨されていません。 
定義:
インタフェース org.apache.avalon.framework.logger.Loggable 内の setLogger

getLogger

public final org.apache.log.Logger getLogger(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.
定義:
インタフェース LogKitManager 内の getLogger
パラメータ:
categoryName - The category name of a configured Logger.
戻り値:
the Logger.

getHierarchy

public org.apache.log.Hierarchy getHierarchy()
推奨されていません。 
Retrieve Hierarchy for Loggers configured by the system.
定義:
インタフェース LogKitManager 内の getHierarchy
戻り値:
the Hierarchy

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."