471,350 Members | 1,631 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,350 software developers and data experts.

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

Jul 20 '08 #1
0 1629

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by anonieko | last post: by
4 posts views Thread by Dhans | last post: by
2 posts views Thread by Vikram | last post: by
2 posts views Thread by Marc Scheuner | last post: by
reply views Thread by Aleksey | last post: by
reply views Thread by rosshinkley | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.