Title: Message
RollingFileAppender can do a daily log.  For example, to have it create a daily log file like this log4net-2004.10.01
 
  <appender name="LogFileAppender" type="log4net.Appender.RollingFileAppender">
   <param name="File" value="log4net" />
   <param name="AppendToFile" value="true"/>
   <param name="DatePattern" value="-yyyy.MM.dd"/>   
   <param name="RollingStyle" value="Date"/>
   <param name="StaticLogFileName" value="false"/>
   <layout type="log4net.Layout.PatternLayout">
    <param name="ConversionPattern" value="## %d %t %-5p %c %x %n%m%n"/>
   </layout>
  </appender>
-----Original Message-----
From: Mario Gutierrez [mailto:[EMAIL PROTECTED]
Sent: Friday, October 01, 2004 10:13 AM
To: 'Log4NET User'
Subject: RE: Log files thread release

Use RollingFileAppender to break up the log into manageable chunks. Then make backups of the rolled files. I wonder if there is DailyRollingFileAppender like the one for log4j which creates a new log ever day.
 
-----Original Message-----
From: Pinto, Antonio Joaquim [mailto:[EMAIL PROTECTED]
Sent: Friday, October 01, 2004 6:44 AM
To: [email protected]
Subject: Log files thread release

I�m using the latest version of log4net, with MS .NET Window Aplication, that is always running. I need one time every day to backup the log files from older days, but i can�t do it, because all the files are being used by the aplication ( System.IO.IOException - The process cannot access the file because it is being used by another process. ) when trying to move the old files to a backup directory. How can i release the files that aren�t already being used?
 
Thanks,
Antonio Pinto.
 

Reply via email to