org.apache.avalon.excalibur.logger.factory
クラス StreamTargetFactory

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

public class StreamTargetFactory
extends AbstractTargetFactory
implements org.apache.avalon.framework.context.Contextualizable

TargetFactory for org.apache.log.output.io.StreamTarget This factory is able to create different StreamTargets according to the following configuration syntax :

 <stream id="foo">
  <stream>stream-context-name</stream>
  <format type="raw|pattern|extended">pattern to be used if needed</format>
 </stream>
 

The "stream-context-name" is the name of an java.io.OutputStream that is fetched in the context. This context contains two predefined streams :

  • "System.out" for the system output stream,
  • "System.err" for the system error stream.
  • The syntax of "format" is the same as in FileTargetFactory.

    バージョン:
    CVS $Revision: 1.3 $ $Date: 2001/12/19 23:34:50 $
    作成者:
    Sylvain Wallez

    クラス org.apache.avalon.excalibur.logger.factory.AbstractTargetFactory から継承したフィールド
    m_configuration, m_context
     
    コンストラクタの概要
    StreamTargetFactory()
               
     
    メソッドの概要
     void contextualize(org.apache.avalon.framework.context.Context context)
              Get the Context object
     org.apache.log.LogTarget createTarget(org.apache.avalon.framework.configuration.Configuration configuration)
              Create a LogTarget based on a Configuration
    protected  org.apache.log.format.Formatter getFormatter(org.apache.avalon.framework.configuration.Configuration conf)
               
     
    クラス org.apache.avalon.excalibur.logger.factory.AbstractTargetFactory から継承したメソッド
    configure
     
    クラス 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
     

    コンストラクタの詳細

    StreamTargetFactory

    public StreamTargetFactory()
    メソッドの詳細

    createTarget

    public org.apache.log.LogTarget createTarget(org.apache.avalon.framework.configuration.Configuration configuration)
                                          throws org.apache.avalon.framework.configuration.ConfigurationException
    Create a LogTarget based on a Configuration
    オーバーライド:
    クラス AbstractTargetFactory 内の createTarget

    contextualize

    public void contextualize(org.apache.avalon.framework.context.Context context)
                       throws org.apache.avalon.framework.context.ContextException
    クラス AbstractTargetFactory の記述:
    Get the Context object
    定義:
    インタフェース org.apache.avalon.framework.context.Contextualizable 内の contextualize
    オーバーライド:
    クラス AbstractTargetFactory 内の contextualize

    getFormatter

    protected org.apache.log.format.Formatter getFormatter(org.apache.avalon.framework.configuration.Configuration conf)


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