org.apache.cocoon.util.log
Class CocoonStreamTargetFactory

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.avalon.excalibur.logger.factory.AbstractTargetFactory
          extended byorg.apache.avalon.excalibur.logger.factory.StreamTargetFactory
              extended byorg.apache.cocoon.util.log.CocoonStreamTargetFactory
All Implemented Interfaces:
Configurable, Contextualizable, LogEnabled, LogTargetFactory

public class CocoonStreamTargetFactory
extends StreamTargetFactory

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|xml|cocoon">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 CocoonTargetFactory.

    Version:
    CVS $Id: CocoonStreamTargetFactory.java 233343 2005-08-18 18:06:44Z sylvain $
    Author:
    Giacomo Pati

    Field Summary
     
    Fields inherited from class org.apache.avalon.excalibur.logger.factory.AbstractTargetFactory
    m_configuration, m_context
     
    Constructor Summary
    CocoonStreamTargetFactory()
               
     
    Method Summary
    protected  org.apache.log.format.Formatter getFormatter(Configuration conf)
               
     
    Methods inherited from class org.apache.avalon.excalibur.logger.factory.StreamTargetFactory
    contextualize, createTarget
     
    Methods inherited from class org.apache.avalon.excalibur.logger.factory.AbstractTargetFactory
    configure
     
    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
     

    Constructor Detail

    CocoonStreamTargetFactory

    public CocoonStreamTargetFactory()
    Method Detail

    getFormatter

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


    Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.