<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <configSections>
      <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
    </configSections>

  <log4net>

    <appender name="RollingAppender" type="log4net.Appender.RollingFileAppender" >
      <layout type="log4net.Layout.PatternLayout">
        <conversionPattern value="%[%d] %5p [%t] (%M@%F:%L) - %m%n" />
      </layout>
      <rollingStyle value="Size" />
      <maximumFileSize value="1MB"  />
      <maxSizeRollBackups value="10" />
      <datePattern value="yyyy-MM-dd"  />
      <file value="log_output.log"  />
    </appender>

    <appender name="MemoryAppender" type="log4net.Appender.MemoryAppender" >
      <layout type="log4net.Layout.PatternLayout">
        <conversionPattern value="[%d] %5p [%t] (%M@%F:%L) - %m" />
      </layout>

    </appender>


    <root>
      <level value="DEBUG" />
      <appender-ref ref="RollingAppender"  />
      <appender-ref ref="MemoryAppender"  />
    </root>
  </log4net>
  
</configuration>