Return-Path: Delivered-To: apmail-logging-log4net-user-archive@www.apache.org Received: (qmail 1285 invoked from network); 17 Aug 2005 10:52:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Aug 2005 10:52:33 -0000 Received: (qmail 1885 invoked by uid 500); 17 Aug 2005 10:52:31 -0000 Delivered-To: apmail-logging-log4net-user-archive@logging.apache.org Received: (qmail 1861 invoked by uid 500); 17 Aug 2005 10:52:30 -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" List-Id: Delivered-To: mailing list log4net-user@logging.apache.org Received: (qmail 1848 invoked by uid 99); 17 Aug 2005 10:52:30 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Aug 2005 03:52:30 -0700 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [137.65.81.172] (HELO lucius.provo.novell.com) (137.65.81.172) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Aug 2005 03:52:49 -0700 Received: from INET-PRV1-MTA by lucius.provo.novell.com with Novell_GroupWise; Wed, 17 Aug 2005 04:52:28 -0600 Message-Id: <430364450200001000212DBD@lucius.provo.novell.com> X-Mailer: Novell GroupWise Internet Agent 7.0 Date: Wed, 17 Aug 2005 04:52:29 -0600 From: "Shaily Goel" To: Subject: DatePatterns in RollingFileAppender Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=__PartC3E18EFD.0__=" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__PartC3E18EFD.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Hi I am using RollingFileAppender to log the messages. The RollingFileAppender should roll the files based on Date. For this, I need to set "DatePattern" property of RollingFileAppender. I am not able to find the correct DatePatterns that should be used for following. Please give me the examples that what date patterns should I use for following: 1. Rollover at the beginning of each month 2. Rollover at the first day of each week. The first day of the week depends on the locale. 3. Rollover at midnight each day 4. Rollover at midnight and midday of each day 5. Rollover at the top of every hour 6. Rollover at the beginning of every minute Thanks Shaily --=__PartC3E18EFD.0__= Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi
 
I am using RollingFileAppender to log the messages. The RollingFileApp= ender should roll the files based on Date. For this, I need to set = "DatePattern" property of RollingFileAppender. I am not able to find the = correct DatePatterns that should be used for following. Please give me the = examples that what date patterns should  I use for following:
 
1.  Rollover at the = beginning of each month
2.  Rollover= at the first day of each week. The first day of the week depends on the = locale.
3.  Rollover at midnight each day
4.  Rollover at midnight and midday of each day<= /SPAN>
5.&nbs= p; Rollover at the top of every = hour
6.  Rollover at the = beginning of every minute
 <= /DIV>
Thanks<= /DIV>
Shaily<= /DIV>
 <= /DIV>
 <= /DIV> --=__PartC3E18EFD.0__=--