The RollingFileAppender builds on the FileAppender and has the same options as that appender. The following example shows how to configure the RollingFileAppender to write to the file log.txt. The file written to will… Read more “log4net RollingFileAppender configuration”
Tag: Log4net
Log4Net – How to … log?
Config <?xml version=”1.0″ encoding=”utf-8″ ?> <configuration> <configSections> <section name=”log4net” type=”log4net.Config.Log4NetConfigurationSectionHandler, log4net” /> </configSections> <log4net> <appender name=”AutomationTestLogAppender” type=”log4net.Appender.FileAppender”> <file value=”AutomationTest.log” /> <appendToFile value=”true” /> <layout type=”log4net.Layout.PatternLayout”> <conversionPattern value=”%date… Read more “Log4Net – How to … log?”