log4net error with RollingFileAppender

C

chatuk

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top