avalon-phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eung-ju Park" <co...@apache.org>
Subject Doc for version 1.1 log configuration.
Date Wed, 13 Mar 2002 09:57:49 GMT
Below is doc for version 1.1 log confiugration.
Please fix English grammar and apply. :-)

      <p>
        The logs section can currently have two types of elements;
<em>log-target</em>s
        which represent destinations for logging and <em>category</em>s.
There must be a
        log-target with the name "default". Categories are hierarchial in
nature, have a
        priority and are associated with one or more log-targets. See the
logging
        documentation for a further description of this section.
      </p>
      <p>
        There is another type of log configuration. It is more configurable.
        Specify version attribute with logs elements. See javadoc of
        org.apache.avalon.excalibur.logger package for detailed description.
        Below is example configuration.
        <source><![CDATA[
<logger version="1.1">
<factories>
  <factory type="file"

class="org.apache.avalon.excalibur.logger.factory.FileTargetFactory"/>
</factories>

<categories>
  <category name="" log-level="INFO">
    <log-target id-ref="default"/>
  </category>
</categories>

<targets>
  <file id="default">
    <filename>${app.home}/logs/default-</filename>
    <append>true</append>
    <rotation type="unique" pattern="yyyyMMdd" suffix=".log">
      <date>yyyyMMdd</date>
    </rotation>
  </file>
</targets>
</logger>
]]></source>
      </p>


--
To unsubscribe, e-mail:   <mailto:avalon-phoenix-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-phoenix-dev-help@jakarta.apache.org>


Mime
View raw message