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

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.

Parameters

<?xml version="1.0"?>
<log4net>
<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" />
</layout>
</appender>
<appender name="EcfLogAppender" type="Mediachase.Commerce.Core.Log.Appender.AppDatabaseAppender">
<bufferSize value="10" />
</appender>
<root>
<level value="ALL" />
<appender-ref ref="EcfLogAppender" />
<appender-ref ref="RollingFileAppender" />
</root>
</log4net>

More Information

 


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