DFE 2.2.0 - 13 Custom log file
The module will log to another log file than the one Episerver logs to by default. Out of the box, we have added our own log4net configuration, which logs to a file named Digizuite.log. Its configuration looks like the following:
<?xml version="1.0" encoding="utf-8"?>
<log4net>
<appender name="digizuiteFileLogAppender" type="log4net.Appender.RollingFileAppender" >
<file value="App_Data\Digizuite.log" />
<encoding value="utf-8" />
<staticLogFileName value="true"/>
<datePattern value=".yyyyMMdd.'log'" />
<rollingStyle value="Date" />
<appendToFile value="true" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date [%thread] %level %message%n" />
</layout>
</appender>
<logger name="Digizuite.Episerver.Helpers.Internal.Logger">
<level value="Error" />
<appender-ref ref="digizuiteFileLogAppender" />
</logger>
</log4net>
Here’s an example of an appended Episerver log config file. It’s supposed to be placed in the root of the Episerver website.