You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by David Thielen <da...@windward.net> on 2005/09/26 15:33:40 UTC

files not rolling over.

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


RE: files not rolling over.

Posted by David Thielen <da...@windward.net>.
I'm running under Tomcat - how do I set it for that?

And what does it write to?

Thanks - dave


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

-----Original Message-----
From: James Stauffer [mailto:stauffer.james@gmail.com] 
Sent: Tuesday, September 27, 2005 9:00 AM
To: Log4J Users List
Subject: Re: files not rolling over.

If you don't have debug logging turned on I would try that first. 
(Add -Dlog4j.debug to the command line.)

On 9/27/05, David Thielen <da...@windward.net> wrote:
> Full control also - and the other files are getting renamed. I'm going to
> have it write the exception to stdout when it fails to rename - that's the
> beauty of open source <g>.
>
> Thanks - dave
>
>
> David Thielen
> 303-499-2544
> www.windwardreports.com
>
> -----Original Message-----
> From: news [mailto:news@sea.gmane.org] On Behalf Of Michael A Chase
> Sent: Tuesday, September 27, 2005 7:45 AM
> To: log4j-user@logging.apache.org
> Subject: RE: files not rolling over.
>
> On Mon, 26 Sep 2005 23:04:48 -0600, David Thielen wrote:
>
> > It's running as Local System (default Tomcat install). And System has
full
> > privleges on the files.
> >
> > Also, all log files except tomcat & windward are being successfully
> renamed.
> >
> > Any other possibilities?
>
> Folder privileges?
>
> --
> Mac :})
> Give a hobbit a fish and he eats fish for a day.
> Give a hobbit a ring and he eats fish for an age.
>
>
>
> ---------------------------------------------------------------------
> 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


Re: files not rolling over.

Posted by James Stauffer <st...@gmail.com>.
If you don't have debug logging turned on I would try that first. 
(Add -Dlog4j.debug to the command line.)

On 9/27/05, David Thielen <da...@windward.net> wrote:
> Full control also - and the other files are getting renamed. I'm going to
> have it write the exception to stdout when it fails to rename - that's the
> beauty of open source <g>.
>
> Thanks - dave
>
>
> David Thielen
> 303-499-2544
> www.windwardreports.com
>
> -----Original Message-----
> From: news [mailto:news@sea.gmane.org] On Behalf Of Michael A Chase
> Sent: Tuesday, September 27, 2005 7:45 AM
> To: log4j-user@logging.apache.org
> Subject: RE: files not rolling over.
>
> On Mon, 26 Sep 2005 23:04:48 -0600, David Thielen wrote:
>
> > It's running as Local System (default Tomcat install). And System has full
> > privleges on the files.
> >
> > Also, all log files except tomcat & windward are being successfully
> renamed.
> >
> > Any other possibilities?
>
> Folder privileges?
>
> --
> Mac :})
> Give a hobbit a fish and he eats fish for a day.
> Give a hobbit a ring and he eats fish for an age.
>
>
>
> ---------------------------------------------------------------------
> 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


RE: files not rolling over.

Posted by Michael A Chase <mc...@ix.netcom.com>.
On Mon, 26 Sep 2005 23:04:48 -0600, David Thielen wrote:

> It's running as Local System (default Tomcat install). And System has full
> privleges on the files.
> 
> Also, all log files except tomcat & windward are being successfully renamed.
> 
> Any other possibilities?

Folder privileges?

-- 
Mac :})
Give a hobbit a fish and he eats fish for a day.
Give a hobbit a ring and he eats fish for an age.



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


RE: files not rolling over.

Posted by Michael A Chase <mc...@ix.netcom.com>.
Make sure the account the webserver is running in has sufficient
privileges in x:\Tomcat 5.5\logs to rename files.

On Mon, 26 Sep 2005 10:53:01 -0600, David Thielen wrote:

> I understand the renaming - but that is not happening. Here is the directory
> of my logs:
> 
> C:\src\xmlreport>dir "x:\Tomcat 5.5\logs"
>  Volume in drive X has no label.
>  Volume Serial Number is 14AC-8BD4
> 
>  Directory of x:\Tomcat 5.5\logs
> 
> 09/25/2005  10:08 PM    <DIR>          .
> 09/25/2005  10:08 PM    <DIR>          ..
> 09/23/2005  12:18 PM                 0 admin.2005-09-23.log
> 09/25/2005  10:08 PM                 0 admin.2005-09-25.log
> 09/23/2005  12:18 PM                 0 catalina.2005-09-23.log
> 09/25/2005  10:08 PM                 0 catalina.2005-09-25.log
> 09/23/2005  12:18 PM                 0 host-manager.2005-09-23.log
> 09/25/2005  10:08 PM                 0 host-manager.2005-09-25.log
> 09/25/2005  10:06 PM            56,743 isapi_redirect.log
> 09/23/2005  12:18 PM                 0 jakarta_service_20050923.log
> 09/25/2005  10:08 PM                 0 jakarta_service_20050925.log
> 09/23/2005  12:18 PM                 0 localhost.2005-09-23.log
> 09/25/2005  10:08 PM                 0 localhost.2005-09-25.log
> 09/23/2005  12:18 PM                 0 manager.2005-09-23.log
> 09/25/2005  10:08 PM                 0 manager.2005-09-25.log
> 09/23/2005  12:18 PM                 0 stderr_20050923.log
> 09/25/2005  10:08 PM                 0 stderr_20050925.log
> 09/25/2005  08:20 PM            10,748 stdout_20050923.log
> 09/26/2005  10:30 AM             4,149 stdout_20050925.log
> 09/26/2005  10:30 AM             1,076 tomcat.log
> 09/26/2005  02:52 AM             5,867 windward.log
>               19 File(s)         78,583 bytes
>                2 Dir(s)   9,557,209,088 bytes free
> 
> C:\src\xmlreport>

-- 
Mac :})
Give a hobbit a fish and he eats fish for a day.
Give a hobbit a ring and he eats fish for an age.



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


RE: files not rolling over.

Posted by David Thielen <da...@windward.net>.
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 <da...@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 <da...@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


RE: files not rolling over.

Posted by David Thielen <da...@windward.net>.
Hi;

I understand the renaming - but that is not happening. Here is the directory
of my logs:

C:\src\xmlreport>dir "x:\Tomcat 5.5\logs"
 Volume in drive X has no label.
 Volume Serial Number is 14AC-8BD4

 Directory of x:\Tomcat 5.5\logs

09/25/2005  10:08 PM    <DIR>          .
09/25/2005  10:08 PM    <DIR>          ..
09/23/2005  12:18 PM                 0 admin.2005-09-23.log
09/25/2005  10:08 PM                 0 admin.2005-09-25.log
09/23/2005  12:18 PM                 0 catalina.2005-09-23.log
09/25/2005  10:08 PM                 0 catalina.2005-09-25.log
09/23/2005  12:18 PM                 0 host-manager.2005-09-23.log
09/25/2005  10:08 PM                 0 host-manager.2005-09-25.log
09/25/2005  10:06 PM            56,743 isapi_redirect.log
09/23/2005  12:18 PM                 0 jakarta_service_20050923.log
09/25/2005  10:08 PM                 0 jakarta_service_20050925.log
09/23/2005  12:18 PM                 0 localhost.2005-09-23.log
09/25/2005  10:08 PM                 0 localhost.2005-09-25.log
09/23/2005  12:18 PM                 0 manager.2005-09-23.log
09/25/2005  10:08 PM                 0 manager.2005-09-25.log
09/23/2005  12:18 PM                 0 stderr_20050923.log
09/25/2005  10:08 PM                 0 stderr_20050925.log
09/25/2005  08:20 PM            10,748 stdout_20050923.log
09/26/2005  10:30 AM             4,149 stdout_20050925.log
09/26/2005  10:30 AM             1,076 tomcat.log
09/26/2005  02:52 AM             5,867 windward.log
              19 File(s)         78,583 bytes
               2 Dir(s)   9,557,209,088 bytes free

C:\src\xmlreport>

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 <da...@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 <da...@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


Re: files not rolling over.

Posted by James Stauffer <st...@gmail.com>.
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 <da...@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 <da...@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


RE: files not rolling over.

Posted by David Thielen <da...@windward.net>.
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 <da...@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


Re: files not rolling over.

Posted by James Stauffer <st...@gmail.com>.
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 <da...@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