logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ceki Gülcü <c...@qos.ch>
Subject Re: Unknown periodity - Is DailyRollingFileAppender broken in log4j 1.3 alpha ?
Date Mon, 22 Nov 2004 21:00:48 GMT

 From what I can tell thus far, the RollingAppender in the new rolling 
package works very nicely.

In version 1.3, org.apache.log4j.DailyRollingFileAppender 
and   org.apache.log4j.RollingFileAppender classes have been removed. They 
have been replaced by org.apache.log4j.rolling.RollingFileAppender for 
which documentation is currently lacking.
However, you can try

  <appender name="ROLL" class="org.apache.log4j.rolling.RollingFileAppender">
     <rollingPolicy class="org.apache.log4j.rolling.TimeBasedRollingPolicy">
       <param name="fileNamePattern" 
value="${fvis.home}/log/logserver.log.%d{yyyy-MM-dd_HH_mm_ss}"/>
     </rollingPolicy>

     <layout class="org.apache.log4j.PatternLayout">
       <param name="ConversionPattern" value="%c{1} - %m%n"/>
     </layout>
   </appender>

HTH,

At 11:10 PM 11/18/2004, Davidson.Hutton@ftid.com wrote:
>I am getting the following error ...
>
>20041118 17:04:04.871 WARN  [Unknown periodicity.]
>{org.apache.log4j.rolling.helpers.RollingCalendar.printPeriodicity(RollingCalendar.java:152)}
>
>
>here is the appropriate xml configuration snippet
>
><appender name="SysLog" class="org.apache.log4j.DailyRollingFileAppender">
>    <param name="File" value="${fvis.home}/log/logserver.log"/>
>    <param name="DatePattern" value=".yyyyMMdd"/>
>    <param name="Append" value="true"/>
>    <layout class="org.apache.log4j.PatternLayout">
>      <param name="ConversionPattern" value="%d{yyyyMMdd HH:mm:ss.SSS} %-5p
>[%m]
>{%l}%n"/>
>    </layout>
>  </appender>
>
>This is running in productio under 1.2.8 using a non-xml configuration
>file.
>Any ideas ?
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>For additional commands, e-mail: log4j-user-help@logging.apache.org

-- 
Ceki Gülcü

  The complete log4j manual:  http://qos.ch/eclm
  Professional log4j support: http://qos.ch/log4jSupport  



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


Mime
View raw message