logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roman Konovalov" <ro...@greenrain.biz>
Subject Log file name duplication
Date Tue, 14 Dec 2010 15:54:25 GMT


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.



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

      <file value="Application Log\"/>

      <appendToFile value="true"/>

      <rollingStyle value="Date"/>

             <datePattern value="yyyy-MM-dd' My App.log'" />

             <maxSizeRollBackups value="10" /> <!--This property is ignored
for Rolling Style Date-->

             <maximumFileSize value="1024KB"/> <!--This property is ignored
for Rolling Style Date-->

      <staticLogFileName value="false" />

             <layout type="log4net.Layout.PatternLayout">

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





      <!--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="ALL" />

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





Best regards,



View raw message