Return-Path: Delivered-To: apmail-logging-log4net-user-archive@www.apache.org Received: (qmail 22276 invoked from network); 6 Oct 2008 21:55:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Oct 2008 21:55:57 -0000 Received: (qmail 29370 invoked by uid 500); 6 Oct 2008 21:55:51 -0000 Delivered-To: apmail-logging-log4net-user-archive@logging.apache.org Received: (qmail 29355 invoked by uid 500); 6 Oct 2008 21:55:51 -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 29342 invoked by uid 99); 6 Oct 2008 21:55:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Oct 2008 14:55:51 -0700 X-ASF-Spam-Status: No, hits=2.1 required=10.0 tests=DNS_FROM_SECURITYSAGE,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of wpmccormick@gmail.com designates 209.85.198.251 as permitted sender) Received: from [209.85.198.251] (HELO rv-out-0708.google.com) (209.85.198.251) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Oct 2008 21:54:49 +0000 Received: by rv-out-0708.google.com with SMTP id c5so2769466rvf.10 for ; Mon, 06 Oct 2008 14:55:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=cSjgBFUcqKPp+gHds+uZhroDPra1qnQmpY0lDtgQI4c=; b=vDsIpiAvbb2qTGRWQIEEXHcg8wc7Xg/G9s84NufMYAa6tW+IvptQbvQwf/al88RGM+ ykpobhTv1SyNUFkFRWJpFiNWXpAvBCbSDrAAQGW3lh5vVrdVIjYl19vAeMbQjoLmMPHI PLqVW8sPNmggqTIYXITb7xKostvzW5CsqElZU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=v/PBnXq7sFkuVX0s4eb3WIU245zRa7d/kGdgVEpes7qEqclrcYe0CnDIh5fvff6MkL UJ0P6lXz5gVzwo6ZoB8S9p0gNLhyYbc8o4WqsABhwqR488lVbze0TbL75RgxaHWYlHF2 5fclSjJlda06mZl2tDvvhTG2U3vPZry4mZh4I= Received: by 10.141.34.12 with SMTP id m12mr3420248rvj.26.1223330115651; Mon, 06 Oct 2008 14:55:15 -0700 (PDT) Received: by 10.141.163.14 with HTTP; Mon, 6 Oct 2008 14:55:15 -0700 (PDT) Message-ID: Date: Mon, 6 Oct 2008 16:55:15 -0500 From: "Bill McCormick" To: "Log4NET User" Subject: RollingFileAppender datePattern MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_42529_20118263.1223330115629" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_42529_20118263.1223330115629 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I have a RollingFileAppender defined as: Is there a trick to getting the backup files to be named MyLog-yyyyMMdd.xml as opposed to MyLog.xmlyyyyMMdd? Having staticLogFileName == false and log files named MyLog-yyyyMMdd.xml would also be cool!! Thanks, Bill ------=_Part_42529_20118263.1223330115629 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
I have a RollingFileAppender defined as:

  <appender name="XMLRollingFile" type="log4net.Appender.
RollingFileAppender">
    <threshold value="DEBUG" />
    <staticLogFileName value="true" />
    <file value="MyLog.xml" />
    <appendToFile value="true" />
    <rollingStyle value="Date" />
    <datePattern value="yyyyMMdd" />
    <maxSizeRollBackups value="30" />
    <maximumFileSize value="20MB" />
    <layout type="log4net.Layout.XmlLayoutSchemaLog4j">
      <locationInfo value="true" />
    </layout>
  </appender>

Is there a trick to getting the backup files to be named MyLog-yyyyMMdd.xml as opposed to MyLog.xmlyyyyMMdd?

Having staticLogFileName == false and log files named MyLog-yyyyMMdd.xml would also be cool!!


Thanks,

Bill


------=_Part_42529_20118263.1223330115629--