PC Review


Reply
Thread Tools Rate Thread

log4net error with RollingFileAppender

 
 
chatuk
Guest
Posts: n/a
 
      20th Jul 2008
Hello,

I have setup log4net with rolling file appender as per the config
below:

<appender name="RollingFile"
type="log4net.Appender.RollingFileAppender">
<file value="V:\SSIS\Logs\PackageExecution.log" />
<appendToFile value="true" />
<maximumFileSize value="100KB" />
<maxSizeRollBackups value="2" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date %-5level
[%-30property{PackageName}] %-30property{SourceName} - %message
Package Execution Guid: [%property{PackageExecutionGuid}]. Batch ID:
[%property{BatchId}]. Event/Error Code: [%property{ErrorCode}]
%newline" />
</layout>
</appender>


it was working quite well up until two days ago when we started
getting the error

"log4net:ERROR RollingFileAppender: INTERNAL ERROR. Append is False
but OutputFile [V:\SSIS\Logs\PackageExecution.log] already exists"

Considering that appendToFile is set to "true", I can't seem to fathom
why would log4net throw the above mentioned exception.

I would be very grateful if someone can shed any light on the problem.

Thanks in advance for the help.

Regards
Keshav
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
log4net error with RollingFileAppender chatuk Microsoft C# .NET 0 20th Jul 2008 06:06 PM
log4net JGralton@gmail.com Microsoft Dot NET Framework 0 20th May 2008 10:54 AM
log4net - Unable to find the specified file (RollingFileAppender) mablao Microsoft Dot NET Framework 0 18th Jul 2006 01:32 PM
log4Net Patrick Microsoft Dot NET Framework 11 22nd Nov 2004 08:16 AM
Using log4net: ERROR No appenders could be found for category (testApp.LoggingExample). Ravindra.H Microsoft C# .NET 0 30th Dec 2003 10:24 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:02 PM.