Return-Path: Delivered-To: apmail-logging-log4net-user-archive@www.apache.org Received: (qmail 10988 invoked from network); 8 Dec 2004 15:14:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 8 Dec 2004 15:14:42 -0000 Received: (qmail 6473 invoked by uid 500); 8 Dec 2004 15:14:17 -0000 Delivered-To: apmail-logging-log4net-user-archive@logging.apache.org Received: (qmail 6425 invoked by uid 500); 8 Dec 2004 15:14:16 -0000 Mailing-List: contact log4net-user-help@logging.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: "Log4NET User" Delivered-To: mailing list log4net-user@logging.apache.org Received: (qmail 6253 invoked by uid 99); 8 Dec 2004 15:14:14 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from mail.wctc.net (HELO mail.wctc.net) (209.94.160.6) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 08 Dec 2004 07:14:12 -0800 Received: from Orion (network173-221.wctc.net [209.94.173.221]) by mail.wctc.net (8.12.11/8.12.10) with ESMTP id iB8FE6Jd097589 for ; Wed, 8 Dec 2004 09:14:09 -0600 (CST) Message-Id: <200412081514.iB8FE6Jd097589@mail.wctc.net> From: "Andrew Elmhorst" To: "'Log4NET User'" Subject: RE: Using RollingFileAppender Date: Wed, 8 Dec 2004 09:14:07 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 In-Reply-To: <9510DF2FECA8D311816800508B6F478E0F6FDEDA@chitmd19.nt.il.nbgfn.com> Thread-Index: AcTdLaoVSs3vxaVuQ0Sr1LKT3P/zmwACt78w X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Try setting the DatePattern property on the RollingFileAppender to "'.'dddd'.log'" This should create backup log files in the pattern [logfilename].Monday.log. This should get you close to what you want. You can also set the StaticLogFileName to false and the RollingFileAppender should write directly to [logfilename].Monday.log. Regards, Andrew Elmhorst -----Original Message----- From: Shrivastava, Ravi [mailto:ravi.shrivastava@bankofamerica.com] Sent: Wednesday, December 08, 2004 7:56 AM To: 'Log4NET User' Subject: Using RollingFileAppender Is there a way I can configure RollingFileAppender to create a log file per day, append to it if it's the app is run multiple times during that same day, but overwrite it the following week. Ex: Have Monday.log, Tuesday.log....etc., which show me logged activity for all of that day - on the following Monday, Tues....they get overwritten. TIA.