logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Helbig, Dirk (EXTERN: HUD)" <extern.dirk.hel...@volkswagen.de>
Subject AW: Keeping old log files in RollingAppender
Date Mon, 08 Aug 2005 08:56:15 GMT
Hi, 
 
I have the same problem!!! 
In my DEBUG-Log you can see why the files could not be rolled. 
 
Thanks 
Dirk

-----Urspr√ľngliche Nachricht-----
Von: Saurabh Dani [mailto:saurabh@danicorp.com] 
Gesendet: Sonntag, 7. August 2005 23:30
An: log4net-user@logging.apache.org
Betreff: Keeping old log files in RollingAppender


I have following configuration for RollingFIleAppender, but it does not save
my old logs. Every night the log file is overwritten. Can someon epoint to
me that what needs to be changed to keep the old logs.

<log4net>

<appender name="RollingLogFileAppender"
type="log4net.Appender.RollingFileAppender">

<file value="Logs\l4net.log" />

<appendToFile value="true" />

<rollingStyle value="Date" />

<datePattern value="yyyyMMdd" /> 

<lockingModel type="log4net.Appender.RollingFileAppender+MinimalLock" />

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

<conversionPattern
value="%date|[%thread]|%-5level|%logger|%l|[%property{NDC}]|-
%message%newline" />

</layout>

</appender>

<root>

<level value="INFO" />

<level value="DEBUG" />

<appender-ref ref="RollingLogFileAppender" />

</root>

</log4net>



Thanks
Saurabh 


Mime
View raw message