logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From juergen.er...@pta.de
Subject Log4net RollingFileAppender stops to roll over
Date Wed, 07 Apr 2010 17:30:34 GMT

Hello,

I'm using log4net v1.2.10 and encountered the following problem:
I'm using a rolling file appender and everything worked quite fine for a
while. But suddenly (after some weeks) the RollingFileAppender stops to
roll over for no obvious reason (at least I can see no reason) and now I
have a really very big log file.
Can you help me?

The application runs on a Windows 2003 system. Here comes my config file:

++++++++++++++++++++++++++
<?xml version="1.0" encoding="utf-8"?>
<log4net>

      <appender name="RollingLogFileAppender"
      type="log4net.Appender.RollingFileAppender">
      <param name="File" value="C:\\Documents and Settings\\All
      Users\\Application Data\\CWS\\log\\CWSServer.log"/>
      <param name="AppendToFile" value="true"/>
      <param name="MaxSizeRollBackups" value="50"/>
      <param name="RollingStyle" value="Date"/>
      <param name="DatePattern" value="yyyyMMdd"/>
      <param name="StaticLogFileName" value="true"/>
      <layout type="log4net.Layout.PatternLayout">
      <param name="ConversionPattern" value="%d{dd.MM.yyyy HH:mm:ss} [%t]
      %-5p %c{1} - %m%n"/>

</layout>
</appender>
<root>

      <level value="ALL"/> <!-- INFO, ERROR, DEBUG, ALL -->
      <appender-ref ref="RollingLogFileAppender"/>

</root>
</log4net>
++++++++++++++++++++++++++

Thanks for your help!

Juergen

PTA Programmier-Technische Arbeiten GmbH
Seckenheimer Str. 65-67, 68165 Mannheim
Amtsgericht Mannheim, HRB 1139
USt-IdNr.: DE 143 839 368
Geschäftsführer:
Dipl.-Ing. Peter Fischer
Dr. Harald W. Busch
Dipl.-Kfm. Knut Fischer

**********************************************************************
http://www.pta.de
Mit 1875 Erfahrungsberichten aus 41 Jahren erfolgreicher Projektarbeit!
**********************************************************************


PTA Programmier-Technische Arbeiten GmbH
Seckenheimer Str. 65-67, 68165 Mannheim
Amtsgericht Mannheim, HRB 1139
USt-IdNr.: DE 143 839 368
Geschaeftsfuehrer:
Dipl.-Ing. Peter Fischer
Dr. Harald W. Busch
Dipl.-Kfm. Knut Fischer

Mime
View raw message