logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Thielen" <da...@windward.net>
Subject RE: files not rolling over.
Date Mon, 26 Sep 2005 16:55:03 GMT
In my stdout logs I am getting:

log4j:ERROR Failed to rename [C:\Tomcat 5.5/logs/windward.log] to [C:\Tomcat
5.5/logs/windward.log.2005-09-23].
log4j:ERROR Failed to rename [C:\Tomcat 5.5/logs/windward.log] to [C:\Tomcat
5.5/logs/windward.log.2005-09-23].
log4j:ERROR Failed to rename [C:\Tomcat 5.5/logs/windward.log] to [C:\Tomcat
5.5/logs/windward.log.2005-09-24].
log4j:ERROR Failed to rename [C:\Tomcat 5.5/logs/windward.log] to [C:\Tomcat
5.5/logs/windward.log.2005-09-24].
log4j:ERROR Failed to rename [C:\Tomcat 5.5/logs/tomcat.log] to [C:\Tomcat
5.5/logs/tomcat.log.2005-09-23].
log4j:ERROR Failed to rename [C:\Tomcat 5.5/logs/tomcat.log] to [C:\Tomcat
5.5/logs/tomcat.log.2005-09-25].

No other message - just this.

David Thielen
303-499-2544
www.windwardreports.com

-----Original Message-----
From: James Stauffer [mailto:stauffer.james@gmail.com] 
Sent: Monday, September 26, 2005 8:38 AM
To: Log4J Users List
Subject: Re: files not rolling over.

When it rolls it renames the current file and then starts writing to a
new current file.  So the current file will always only have logs from
the current day (assuming there has been at least on log today).

On 9/26/05, David Thielen <david@windward.net> wrote:
> What seems to be happening is it is just deleteing it at midnight. All log
> entries from Fri/Sat/Sun are gone. And it now has just today's entries.
>
> And it looks like it may be starting at the beginning of the file to write
> again - but did not clear the old file - it is overwriting it instead.
>
> ??? - thanks - dave
>
> David Thielen
> 303-499-2544
> www.windwardreports.com
>
> -----Original Message-----
> From: James Stauffer [mailto:stauffer.james@gmail.com]
> Sent: Monday, September 26, 2005 7:54 AM
> To: Log4J Users List
> Subject: Re: files not rolling over.
>
> Rolling logs won't roll until the need to.  If a log is generated
> today than it should cause them to roll.
>
> On 9/26/05, David Thielen <david@windward.net> wrote:
> > Hi;
> >
> > After running all weekend my files tomcat.log and windward.log did not
> roll
> > over. stdout did. Here is my properties:
> >
> > <?xml version="1.0" encoding="UTF-8" ?>
> > <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
> > <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
> >
> >         <appender name="stdout"
class="org.apache.log4j.ConsoleAppender">
> >                 <layout class="org.apache.log4j.PatternLayout">
> >                         <param name="ConversionPattern" value="%5p [%t]
%m
> -
> > %c %M%n"/>
> >                 </layout>
> >         </appender>
> >
> >         <appender name="tomcat"
> > class="org.apache.log4j.DailyRollingFileAppender">
> >                 <param name="file"
> > value="${catalina.home}/logs/tomcat.log"/>
> >                 <layout class="org.apache.log4j.PatternLayout">
> >                         <param name="ConversionPattern"
> > value="%d{HH:mm:ss.SSS} %5p [%t] %c - %m%n"/>
> >                 </layout>
> >         </appender>
> >
> >         <appender name="windward"
> > class="org.apache.log4j.DailyRollingFileAppender">
> >                 <param name="file"
> > value="${catalina.home}/logs/windward.log"/>
> >                 <layout class="org.apache.log4j.PatternLayout">
> >                         <param name="ConversionPattern"
> > value="%d{HH:mm:ss.SSS} %5p [%t] %c - %m%n"/>
> >                 </layout>
> >         </appender>
> >
> >         <logger name="net.windward" additivity="false">
> >                 <level value="info"/>
> >                 <appender-ref ref="windward" />
> >         </logger>
> >         <root>
> >                 <priority value="warn" />
> >                 <appender-ref ref="stdout" />
> >                 <appender-ref ref="tomcat" />
> >         </root>
> >
> > </log4j:configuration>
> >
> >
> > David Thielen
> > 303-499-2544
> > www.windwardreports.com
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> > For additional commands, e-mail: log4j-user-help@logging.apache.org
> >
> >
>
>
> --
> James Stauffer
> Are you good? Take the test at http://www.livingwaters.com/good/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>


--
James Stauffer
Are you good? Take the test at http://www.livingwaters.com/good/

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


---------------------------------------------------------------------
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