Hi I am using log4net in my windows application following is the content of my app.confige file. there are two tags in my app.confige file i need both of them to work in my appllication. but the problem is that if i include both the tags in that case my logs are not created in the application.log file whereas if i comment runtime and and assemblies tag only then logs are created in the application.log file but as i comment out the runtime and assemblies tag i can not implement other functionalities for the application.
please help to get me the solution.
<configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net"/>
</configSections>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="bin"/>
</assemblyBinding>
</runtime>
<assemblies>
<add assembly="ImageGear19.Core"/>
</assemblies>
<!--The settings below are required for Logging-->
<log4net>
<appender name="Application" type="log4net.Appender.RollingFileAppender">
<file value="Application.log"/>
<appendToFile value="true"/>
<maxSizeRollBackups value="10"/>
<maximumFileSize value="2 MB"/>
<rollingStyle value="Size"/>
<staticLogFileName value="true"/>
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date[%thread](%-5level): %message%newline"/>
</layout>
</appender>
<logger name="Application">
<level value="All"/>
<appender-ref ref="Application"/>
</logger>
</log4net>