Return-Path: Delivered-To: apmail-logging-log4net-user-archive@www.apache.org Received: (qmail 24989 invoked from network); 14 Dec 2010 15:55:04 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 14 Dec 2010 15:55:04 -0000 Received: (qmail 50997 invoked by uid 500); 14 Dec 2010 15:55:04 -0000 Delivered-To: apmail-logging-log4net-user-archive@logging.apache.org Received: (qmail 50850 invoked by uid 500); 14 Dec 2010 15:55:02 -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 50455 invoked by uid 99); 14 Dec 2010 15:55:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Dec 2010 15:55:01 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [74.125.82.195] (HELO mail-wy0-f195.google.com) (74.125.82.195) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Dec 2010 15:54:53 +0000 Received: by wyg36 with SMTP id 36so162279wyg.10 for ; Tue, 14 Dec 2010 07:54:32 -0800 (PST) Received: by 10.216.163.15 with SMTP id z15mr6269917wek.85.1292342071968; Tue, 14 Dec 2010 07:54:31 -0800 (PST) Received: from GREENRAIN1 ([92.98.165.225]) by mx.google.com with ESMTPS id e12sm156521wer.36.2010.12.14.07.54.28 (version=SSLv3 cipher=RC4-MD5); Tue, 14 Dec 2010 07:54:30 -0800 (PST) From: "Roman Konovalov" To: "'Log4NET User'" Subject: Log file name duplication Date: Tue, 14 Dec 2010 19:54:25 +0400 Message-ID: <01d701cb9ba7$30e81170$92b83450$@biz> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_01D8_01CB9BC8.B7F9B170" X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Acubpy469P+XmT2aSxqf0WJO/Vjt6A== Content-Language: sv This is a multi-part message in MIME format. ------=_NextPart_000_01D8_01CB9BC8.B7F9B170 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, I got an issue with the duplicated log file names - I get two log files. For example, on December 14 I got these two files: 1). 2010-12-14 My App.log 2). 2010-12-14 My App.log2010-12-14 My App.log Do you have any suggestion what is wrong with my settings? I use the one below. Thanks in advance. Best regards, Roman ------=_NextPart_000_01D8_01CB9BC8.B7F9B170 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

 

I got an issue with the = duplicated log file names – I get two log files. For example, on December 14 I got = these two files:

1). 2010-12-14 My = App.log

2). 2010-12-14 My = App.log2010-12-14 My App.log

 

Do you have any suggestion what = is wrong with my settings? I use the one below. Thanks in = advance.

 

  = <log4net>

    <appender name=3D"My App" = type=3D"log4net.Appender.RollingFileAppender">

      <file value=3D"Application Log\"/>

      <appendToFile value=3D"true"/>

      <rollingStyle value=3D"Date"/>

         &n= bsp;   <datePattern value=3D"yyyy-MM-dd' My App.log'" />

         &n= bsp;   <maxSizeRollBackups value=3D"10" /> = <!--This property is ignored for Rolling Style = Date-->

         &n= bsp;   <maximumFileSize value=3D"1024KB"/> = <!--This property is ignored for Rolling Style = Date-->

      <staticLogFileName value=3D"false" = />

         &n= bsp;   <layout type=3D"log4net.Layout.PatternLayout">

        <conversionPattern value=3D"%date{yyyy-MM-dd HH:mm:ss} [%thread] %-5level = %C{1}.%M (%F:%L) - %m%n" = />

      </layout>

    </appender>

 

    <root>

      <!--Level value would always be ALL as all appenders will = inherit this value. Root's level is the lowest level any appender will = have.-->

      <level value=3D"ALL" = />

      <appender-ref ref=3D"Greenrain Connect" />

    </root>

  </log4net>

 

 

Best = regards,

Roman

 

------=_NextPart_000_01D8_01CB9BC8.B7F9B170--