Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Sun, 20 Jul 2008 09:07:31 -0700 (PDT),    group: microsoft.public.dotnet.framework        back       


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
date: Sun, 20 Jul 2008 09:07:31 -0700 (PDT)   author:   chatuk

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us