Return-Path: Delivered-To: apmail-logging-log4j-user-archive@www.apache.org Received: (qmail 92033 invoked from network); 22 Mar 2006 20:22:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Mar 2006 20:22:02 -0000 Received: (qmail 65441 invoked by uid 500); 22 Mar 2006 20:21:57 -0000 Delivered-To: apmail-logging-log4j-user-archive@logging.apache.org Received: (qmail 65404 invoked by uid 500); 22 Mar 2006 20:21:56 -0000 Mailing-List: contact log4j-user-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Users List" Reply-To: "Log4J Users List" Delivered-To: mailing list log4j-user@logging.apache.org Received: (qmail 65393 invoked by uid 99); 22 Mar 2006 20:21:56 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Mar 2006 12:21:56 -0800 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=DNS_FROM_RFC_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of isking@ntlworld.com designates 81.103.221.47 as permitted sender) Received: from [81.103.221.47] (HELO mtaout01-winn.ispmail.ntl.com) (81.103.221.47) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Mar 2006 12:21:55 -0800 Received: from aamtaout02-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout01-winn.ispmail.ntl.com with ESMTP id <20060322202133.UPCU29343.mtaout01-winn.ispmail.ntl.com@aamtaout02-winn.ispmail.ntl.com> for ; Wed, 22 Mar 2006 20:21:33 +0000 Received: from mars ([81.109.88.120]) by aamtaout02-winn.ispmail.ntl.com with ESMTP id <20060322202133.GOFE15350.aamtaout02-winn.ispmail.ntl.com@mars> for ; Wed, 22 Mar 2006 20:21:33 +0000 From: "Ian King" To: "'Log4J Users List'" Subject: RE: File Size and Retention Date: Wed, 22 Mar 2006 20:21:31 -0000 Message-ID: <000801c64dee$366bd6b0$6501a8c0@isk.me.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <41DBD497D8DFA24E96B2D42C89B3B132115EC5D0@gsnmp39es.firmwide.corp.gs.com> Thread-Index: AcZN1HutB7X09jPHTymoRRviqnxG8wAGR1KA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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 Hello!! How can I do the following: I would like to create a log file and would like to SET THE FILE SIZE and RETENTION period. 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??? Thanks, Kenny --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-user-help@logging.apache.org