Apparently periods and dashes can be part of the pattern used to 
instantiate a SimpleDateFormat object.
You should be able to use the single quotes, but it's not really 
necessary. 

I have tried other documented example patterns. 
They all work fine in 1.2.8, but none are accepted by 1.3 
I will reload the 1.3 jar file (mine is stale) and try again.
Then I will look at the RollingCalendar code and try to find the offending 
code.

Unfortunately at work, I am behind a firewall and cannot use the CVS 
repository.
The alternative "getcvs" protocol doesn't get all the source either.
I would greatly appreciate being able to download both the current log4j 
1.3 and chainsaw 1.3 alpha source as tar.gz distribution files.






Raul Carazo <[EMAIL PROTECTED]>
11/19/2004 02:36 AM
Please respond to "Log4J Users List"

 
        To:     Log4J Users List <[EMAIL PROTECTED]>
        cc: 
        Subject:        Re: Unknown periodity - Is DailyRollingFileAppender 
broken in  log4j 1.3 
alpha ?


Is it not possible to use "'.'yyyyMMdd" for the
DatePattern?


--- Ceki G�lc� <[EMAIL PROTECTED]> escribi�: 
> 
> Hello,
> 
> It looks like you are definitely not running 1.2.8.
> but a variant of 1.3alpha.
> 
> I'd also change:
> 
>    <param name="DatePattern" value=".yyyyMMdd"/>
> 
> to:
> 
>    <param name="DatePattern" value="yyyyMMdd"/>
> 
> Give it a try.
> 
> At 11:10 PM 11/18/2004, [EMAIL PROTECTED]
> 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 ?
> 
> -- 
> Ceki G�lc�
> 
>   The complete log4j manual:  http://qos.ch/eclm
>   Professional log4j support:
> http://qos.ch/log4jSupport 
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


 
______________________________________________
Renovamos el Correo Yahoo!: �100 MB GRATIS!
Nuevos servicios, m�s seguridad
http://correo.yahoo.es

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to