Ervis Trupja
<configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
</configSections> <log4net> <appender name="FileAppender" type="log4net.Appender.FileAppender">
<file value="C:\dev\log-file.txt" /> <appendToFile value="true" /> <layout type="log4net.Layout.PatternLayout"> <conversionPattern value="Level - %level%newline" /> </layout>
<file value="C:\dev\log-file.txt" />
<appendToFile value="true" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="Level - %level%newline" />
</layout>
</appender>
<root> <level key="LoggingLevel" value="Test" /> <appender-ref ref="FileAppender" /> </root>
<level key="LoggingLevel" value="Test" />
<appender-ref ref="FileAppender" />
</log4net> <startup> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" /> </startup>