I am using VS 2013 and Log4Net to log data for a .Net application. I can create logs. But when i try to delete or move the log file , it says
The file is open in another process...
This message i get even though the browser is closed. I am only able to edit/cut/ rename.. the log file when i close the Visual studio IDE tool. How can i solve this problem. I want the ability to delete / edit the file whenever i want. Here is the code for log4net used in web.config
<configSections>
<section name="log4net"
type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
</configSections>
<log4net>
<appender name="RollingFile" type="log4net.Appender.RollingFileAppender">
<file value="c:\logs\jwhXMLDev.log" />
<appendToFile value="true" />
<!-- <layout type="log4net.Layout.XmlLayout"/>-->
<layout type="log4net.Layout.XmlLayout" />
</appender>
<appender name="MemoryAppender" type="log4net.Appender.MemoryAppender">
<onlyFixPartialEventData value="true" />
</appender>
<root>
<level value="ALL" />
<appender-ref ref="RollingFile" />
</root>
</log4net>