logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arturo Martinez <art...@nmp.es>
Subject DailyRollingFileAppender
Date Mon, 02 Apr 2001 16:46:52 GMT
Where can I find more information about DailyRollingFileAppender.
When does it write the new file? what means at midnight? What happens if
the server is down at midnigth?
Thanks

I have this configuration file:


<?xml version="1.0" encoding="UTF-8" ?>
<!--<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
-->

  <log4j:configuration>

    <appender name="A1"
class="org.apache.log4j.DailyRollingFileAppender">
      <param name="File"
value="/usr/local/home/root/devel/deployment/cms/WEB-INF/logs/cms.log"
/>
      <param name="DatePattern"   value="'.'yyyy-MM-dd" />
      <layout class="org.apache.log4j.PatternLayout">
        <param name="ConversionPattern" value="%t %-5p %c{2} - %m\n"/>
      </layout>
    </appender>

    <appender name="STDOUT" class="org.apache.log4j.ConsoleAppender">
      <param name="File" value="System.out" />

      <layout class="org.apache.log4j.PatternLayout">
        <param name="ConversionPattern"
          value="%d %-5p [%t] %C{2} (%F:%L) - %m\n"/>
      </layout>
    </appender>

    <category name="es.nmp">
      <priority value="debug" />
      <appender-ref ref="A1" />
    </category>

    <root>
      <priority value ="debug" />
      <appender-ref ref="STDOUT" />
    </root>

</log4j:configuration>


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org


Mime
View raw message