You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.1 KiB
31 lines
1.1 KiB
<?xml version="1.0" encoding="utf-8" ?>
|
|
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://www.nlog-project.org/schemas/NLog.xsd NLog.xsd"
|
|
autoReload="true"
|
|
throwExceptions="false"
|
|
internalLogLevel="Off" internalLogFile="NLog\all_log.log">
|
|
|
|
<targets>
|
|
<!--文件日志,archive相关参数:文件拆分,每100M拆分一个新文件-->
|
|
<target xsi:type="File"
|
|
name="all_log"
|
|
fileName="NLog\${shortdate}\${uppercase:${level}}.log"
|
|
layout="${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}"
|
|
archiveFileName="NLog\${shortdate}\${uppercase:${level}}${shortdate}.{####}.log"
|
|
archiveNumbering="Rolling"
|
|
archiveAboveSize="10485760"
|
|
concurrentwrites="true"
|
|
maxArchiveFiles="100"
|
|
/>
|
|
|
|
</targets>
|
|
|
|
|
|
<rules>
|
|
<!-- add your logging rules here -->
|
|
<!--路由顺序会对日志打印产生影响。路由匹配逻辑为顺序匹配。-->
|
|
<Logger name="Micrisoft.*" minlevel="Trace" final="true" />
|
|
<logger name="*" minlevel="Trace" writeTo="all_log" />
|
|
</rules>
|
|
</nlog>
|