logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ian King" <isk...@ntlworld.com>
Subject RE: File Size and Retention
Date Wed, 22 Mar 2006 20:21:31 GMT
You could use the DailyRollingFileAppender with a DatePattern of '.'yyyy-w
where w is the week in year (see SimpleDateFormat).

-----Original Message-----
From: Sanchez, Kenny J [mailto:Kenny.Sanchez@gs.com] 
Sent: 22 March 2006 17:17
To: 'log4j-user@logging.apache.org'
Subject: File Size and Retention
Importance: High

How can I do the following:
I would like to create a log file and would like to SET THE FILE SIZE and
I would like to set the file size to 500KB and only save a weeks worth of
that file.  
Can someone point me in the right direction/send me an example???

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

View raw message