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 aren't rolling over
Date Fri, 23 Sep 2005 17:37:47 GMT
AHHHHHHH - thank you

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

-----Original Message-----
From: news [mailto:news@sea.gmane.org] On Behalf Of Michael A Chase
Sent: Friday, September 23, 2005 7:37 AM
To: log4j-user@logging.apache.org
Subject: Re: Files aren't rolling over

On Fri, 23 Sep 2005 07:22:32 -0600, David Thielen wrote:

> None of our files rolled over from yesterday. Any idea why?

You're using RollingFileAppender, it rolls when files hit a certain size,
100KB in your case, not when the date changes.  Maybe you want
DailyRollingFileAppender instead.

> 	<appender name="tomcat"
> class="org.apache.log4j.RollingFileAppender">
> 		<param name="file"
> value="${catalina.home}/logs/tomcat.log"/>
> 		<param name="MaxFileSize" value="100KB"/> <param
name="MaxBackupIndex"
> 		value="10"/> <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.RollingFileAppender">
> 		<param name="file"
> value="${catalina.home}/logs/windward.log"/>
> 		<param name="MaxFileSize" value="100KB"/> <param
name="MaxBackupIndex"
> 		value="10"/> <layout class="org.apache.log4j.PatternLayout">
> 			<param name="ConversionPattern"
> value="%d{HH:mm:ss.SSS} %5p [%t] %c - %m%n"/>
> 		</layout>
> 	</appender>

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


Mime
View raw message