<?xml version="1.0" encoding="utf-8" ?> <configuration> <!-- Configuration Sections In This File --> <configSections> <!-- Log4Net Section --> <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" /> </configSections> <!-- Log4Net Configuration --> <log4net> <!-- Define an output appender (where the logs can go) --> <appender name="LogFileAppender" type="log4net.Appender.FileAppender, log4net"> <param name="File" value="log.txt" /> <param name="AppendToFile" value="true" /> <layout type="log4net.Layout.PatternLayout, log4net"> <param name="ConversionPattern" value="%d [%t] %-5p %c [%x] <%X{auth}> - %m%n" /> </layout> </appender> <!-- Note: Priority level can be ALL/DEBUG/INFO/WARN/ERROR/FATAL/OFF --> <!-- Setup the root category, set the default priority level and add the appender(s) (where the logs will go) --> <root> <priority value="WARN" /> <appender-ref ref="LogFileAppender" /> </root> </log4net> <appSettings file="LEKSettings.config"> </appSettings> </configuration>
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)