You are here: Configuration > Appendix - Configuration Files > log4net config


EPiServer Commerce uses log4net for its logging functionality. log4net allows developers to output logs and detect problems faster. The config file for log4net allows for flexibility when targeting different databases for writing events.


<?xml version="1.0"?>
<appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender">
<file value="app_data/log/log.txt" />
<appendToFile value="true" />
<rollingStyle value="Size" />
<maxSizeRollBackups value="10" />
<maximumFileSize value="100KB" />
<staticLogFileName value="true" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date [%thread|%thread] %-5level %logger - %message%newline" />
<appender name="EcfLogAppender" type="Mediachase.Commerce.Core.Log.Appender.AppDatabaseAppender">
<bufferSize value="10" />
<level value="ALL" />
<appender-ref ref="EcfLogAppender" />
<appender-ref ref="RollingFileAppender" />

More Information


Last updated: 2011-05-17 | Copyright © EPiServer AB | Send feedback to us