Your suggestion does not explain the following fact
> File permissions are okay... and it seems to work fine for a few days after > first starting up Tomcat, but then for some reason it just stops renaming > the files and overwrites the same file every day. I don't think the single quotes in the DatePattern matter. At 11:26 28.08.2002 -0400, you wrote: >Try > ><param name="DatePattern" value=".yyyy-MM-dd"/> > >rather than > ><param name="DatePattern" value="'.'yyyy-MM-dd"/> > > >Subtle nuance from .properties to XML format.... > >Luc > > > > > >"Shawn Wilson" <[EMAIL PROTECTED]> on 08/28/2002 11:22:23 AM > >Please respond to "Log4J Users List" <[EMAIL PROTECTED]> > >To: "Log4J Users List" <[EMAIL PROTECTED]> >cc: > >Subject: RE: DailyRollingFileAppender not renaming files > > >I know for a fact it happens with log4j-1.2.5. Now, I think I'm using >log4j-1.2.6 now but I'm not certain because even though I stopped the >webapp >(it's running under Tomcat) and put the 1.2.6 jar in the /lib folder, the >1.2.5 jar file was locked so I wasn't able to remove it. Now, after >starting >the webapp again, they're both locked. > >Here's the configuration from my log4j.xml for the >DailyRollingFileAppender: > > <appender name="A3_Nyce" >class="org.apache.log4j.DailyRollingFileAppender"> > <param name="DatePattern" value="'.'yyyy-MM-dd"/> > <!--param name="MaxLogs" value="30"/--> > <param name="File" >value >="e:/WebApps/atmreports/cvsroot/ATMReports/ATMRealtime_NYCE/WEB-INF/log >s/Nyce.log"/> > <layout class="org.apache.log4j.PatternLayout"> > <param name="ConversionPattern" value="%-15d{ISO8601} %-10p (%c) - >%m%n"/> > </layout> > </appender> > >File permissions are okay... and it seems to work fine for a few days after >first starting up Tomcat, but then for some reason it just stops renaming >the files and overwrites the same file every day. > >-shawn > >==================================== >Shawn Wilson [[EMAIL PROTECTED]] >Software Developer, ATMReports.com >PH: 877-327-0873, FAX: 406-294-5806 >==================================== > > > > -----Original Message----- > > From: Ceki Gulcu [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, August 28, 2002 9:08 AM > > To: Log4J Users List > > Subject: Re: DailyRollingFileAppender not renaming files > > > > > > At 09:04 28.08.2002 -0600, you wrote: > > >Hi, > > > > > >I'm using log4j on the Windows platform and many times I notice that > > >DailyRollingFileAppender is not able to rename the log file. I get this > > >messages on stderr: > > > > > >log4j:ERROR Failed to rename [c:/path/to/my/file] to > > >[c:/path/to/my/file.2002-08-27]. > > > > > >I searched the archives and someone had said it may have something to do > > >with multiple threads using a single Logger object. This may in > > fact be what > > >is causing my problem since I have two threads in one class that > > are using > > >the same Logger. > > > > Don't believe everything you read. > > > > >What should I do to prevent this error from occurring? It is important >we > > >keep backups of all our log files! > > > > Which version of log4j is this? What is the DatePattern for > > DailyRollingFileAppender? Is the directory c:/path/to/my protected? > > > > >Thanks, > > >-shawn > > > > -- > > Ceki > > > > > > -- > > To unsubscribe, e-mail: ><mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > > >-- >To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > > > > > > > > >-- >To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- Ceki -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>