Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The module will log into a different logfile then the default one in Episerverto another log file than the one Episerver logs to by default. Out of the box, we have added our own log4net configuration. Which will log , which logs to a file called named Digizuite.log. The Its configuration looks like thisthe following:

Code Block
languagexml
<?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.

View file
nameEPiServerLog.config