123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?xml version="1.0" encoding="utf-8"?>
- <configuration>
- <log4net>
- <!-- 错误日志类-->
- <logger name="logerror">
- <level value="ALL" />
- <appender-ref ref="ErrorAppender" />
- </logger>
- <!-- 错误日志附加介质-->
- <appender name="ErrorAppender" type="log4net.Appender.RollingFileAppender">
- <!--日志文件路径-->
- <param name="File" value="log/" />
- <!--是否是向文件中追加日志-->
- <param name="AppendToFile" value="true" />
- <!--log保留天数-->
- <param name="MaxSizeRollBackups" value="1000" />
- <!--最大文件大小-->
- <param name="MaxFileSize" value="10240" />
- <!--日志文件名是否是固定不变的-->
- <param name="StaticLogFileName" value="false" />
- <!--日志文件名格式为:2008-08-31.log-->
- <param name="DatePattern" value="app-yyyy-MM-dd".log"" />
- <!--日志根据日期滚动-->
- <param name="RollingStyle" value="Date" />
- <param name="Encoding" value="utf-8" />
- <!--信息日志布局-->
- <layout type="log4net.Layout.PatternLayout">
- <param name="ConversionPattern" value="<!--异常信息头-->%n【异常时间】:%d [%t] ;%n【异常级别】:%-5p %n%m %n <!--异常信息尾部-->%n" />
- </layout>
- </appender>
- <!-- 信息日志类 -->
- </log4net>
- <!-- To customize the asp.net core module uncomment and edit the following section.
- For more info see https://go.microsoft.com/fwlink/?linkid=838655 -->
- <!--
- <system.webServer>
- <handlers>
- <remove name="aspNetCore"/>
- <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified"/>
- </handlers>
- <aspNetCore processPath="%LAUNCHER_PATH%" arguments="%LAUNCHER_ARGS%" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" />
- </system.webServer>
- -->
- </configuration>
|