<?xml version="1.0" encoding="utf-8"?>
<log4net>
  <appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender">
    <!--日志文件名-->
    <file value="Logs/err.log"/>
    <!--是否在文件中追加-->
    <appendToFile value="true"/>
    <!--按照文件的大小进行变换日志文件-->
    <rollingStyle value="Date"/>
    <PreserveLogFileNameExtension value="true" />
    <datePattern value="yyyyMMdd" />
    <!--最大变换数量-->
    <maxSizeRollBackups value="30"/>
    <layout type="log4net.Layout.PatternLayout">
      <conversionPattern value="%date [%thread] %-5level %message%newline"/>
    </layout>
  </appender>
  <root>
    <level value="DEBUG" />
    <appender-ref ref="RollingFileAppender" />
  </root>
</log4net>