![]() |
|
|
|||
|
log4net error with RollingFileAppender
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 |
![]() |
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|