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 Episerver. Out of box we have added our own log4net configuration. Which will log to a file called Digizuite.log. The configuration looks like this:

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>