Return-Path: X-Original-To: apmail-logging-log4net-user-archive@www.apache.org Delivered-To: apmail-logging-log4net-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4255C98C8 for ; Sun, 3 Jun 2012 05:56:18 +0000 (UTC) Received: (qmail 15489 invoked by uid 500); 3 Jun 2012 05:56:17 -0000 Delivered-To: apmail-logging-log4net-user-archive@logging.apache.org Received: (qmail 15109 invoked by uid 500); 3 Jun 2012 05:56:13 -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 15082 invoked by uid 99); 3 Jun 2012 05:56:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Jun 2012 05:56:12 +0000 X-ASF-Spam-Status: No, hits=-0.5 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of chunkit85@gmail.com designates 209.85.213.175 as permitted sender) Received: from [209.85.213.175] (HELO mail-yx0-f175.google.com) (209.85.213.175) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Jun 2012 05:56:04 +0000 Received: by yenl13 with SMTP id l13so2715109yen.34 for ; Sat, 02 Jun 2012 22:55:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=RL10f9y6691b72VT6FZqPKk1Ih2EXz+aUdcB9MgaTBc=; b=jAfp+1/On3Y9wL0AaBfGMGE/F2O4Hrk336Pwtg4OUQ2CS4aMSbP3HnHZHtx1gcZHz8 pGOY1YahXsqb3QBil2Ez3ZNs1uIUWnkBvVuTePBolWzrXZPJDDHzdbCBvMlzfQzZLMU/ 994SXNO7Q4tMip4OzmkCyBf66xEgzxaYtPWomgd0cTr3nnufB91EfQIROQUtaJwJXoFE /OoWDpHnysFvATmULImDoCXxnODqbRsQlp/8KFcvnHN+SoPQhAsdi2FLrFAs2zDcUThi 9RThG4yxDANp73hRBo5qNAIkdxqCMYkJXh1U8LY7QrW+z1vmB7sdGf52GiUyHScVHAJU D2UA== Received: by 10.236.168.65 with SMTP id j41mr3238363yhl.82.1338702943887; Sat, 02 Jun 2012 22:55:43 -0700 (PDT) MIME-Version: 1.0 Received: by 10.236.165.6 with HTTP; Sat, 2 Jun 2012 22:55:03 -0700 (PDT) In-Reply-To: References: From: Lee Chun Kit Date: Sun, 3 Jun 2012 13:55:03 +0800 Message-ID: Subject: Re: Log files overwritten To: Log4NET User Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable If you change your configuration from to does the overwriting still happen? Regards, Chun Kit On Sat, Jun 2, 2012 at 12:19 AM, Pascal ROZE wrote: > Hello everyone > > I have a rolling file appender hosted in an IIS 6.0 application that look= s > like: > > type=3D"log4net.Appender.RollingFileAppender"> > =C2=A0=C2=A0=C2=A0 > =C2=A0=C2=A0=C2=A0 > =C2=A0=C2=A0=C2=A0 > =C2=A0=C2=A0=C2=A0 > =C2=A0=C2=A0=C2=A0 > =C2=A0=C2=A0=C2=A0 > =C2=A0=C2=A0=C2=A0 > =C2=A0=C2=A0=C2=A0 > =C2=A0=C2=A0=C2=A0 > =C2=A0=C2=A0=C2=A0 > =C2=A0=C2=A0=C2=A0 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 %-15property{log4net:HostName} ThreadID: %-10thread %message %newline"/> > =C2=A0=C2=A0=C2=A0 > =C2=A0 > > So, at the end of the day, I have some files like Errors.20120601.0.log, > Errors.20120601.1.log, Errors.20120601.2.log and so on. > > But, if the application is restarted during the day, log file names resta= rt > from 0 and the existing files are overwritten one after the other. > > How to avoid that? > > Thanx for your help > > Pascal >