|
@@ -1,9 +1,14 @@
|
|
|
<?xml version="1.0" encoding="utf-8" ?>
|
|
<?xml version="1.0" encoding="utf-8" ?>
|
|
|
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
|
|
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
|
|
-
|
|
|
|
|
|
|
+ <!--若是想生成Nlog内部Log用该段代码:internalLogLevel="Trace"
|
|
|
|
|
+ internalLogFile="D:/SkyUnion/SK.RF3.Data/Log/nlog-internal.log"-->
|
|
|
|
|
+ <!-- assembly 填写你存放 Target 的类库 DLL 名称(不带 .dll 后缀) -->
|
|
|
|
|
+ <extensions>
|
|
|
|
|
+ <add assembly="SKMC.Api" />
|
|
|
|
|
+ </extensions>
|
|
|
<!-- 定义日志输出格式模板 -->
|
|
<!-- 定义日志输出格式模板 -->
|
|
|
- <variable name="myLayout" value="[${longdate}] ${level:uppercase=true} [${threadid}][${callsite:className=true:methodName=false:includeNamespace=false:skipFrames=1}] - ${message}${newline}${exception:format=toString}" />
|
|
|
|
|
|
|
+ <variable name="myLayout" value="[${longdate}] ${level:uppercase=true} [${threadid}][${callsite:className=true:methodName=false:includeNamespace=false:skipFrames=1}] - ${message}${exception:format=toString}" />
|
|
|
|
|
|
|
|
<!-- 全局设置:定义四个不同的异步文件目标 -->
|
|
<!-- 全局设置:定义四个不同的异步文件目标 -->
|
|
|
<targets>
|
|
<targets>
|
|
@@ -62,7 +67,7 @@
|
|
|
keepFileOpen="false"
|
|
keepFileOpen="false"
|
|
|
encoding="utf-8"/>
|
|
encoding="utf-8"/>
|
|
|
</target>
|
|
</target>
|
|
|
- <target name="LoggingProductionTarget" xsi:type="LoggingProductionTarget"/>
|
|
|
|
|
|
|
+ <target name="LoggingProductionTarget" xsi:type="LoggingProductionTarget"/>
|
|
|
<target name="LoggingParameterTarget" xsi:type="LoggingParameterTarget"/>
|
|
<target name="LoggingParameterTarget" xsi:type="LoggingParameterTarget"/>
|
|
|
<target name="LoggingProcessTarget" xsi:type="LoggingProcessTarget"/>
|
|
<target name="LoggingProcessTarget" xsi:type="LoggingProcessTarget"/>
|
|
|
<target name="LoggingActionTarget" xsi:type="LoggingActionTarget"/>
|
|
<target name="LoggingActionTarget" xsi:type="LoggingActionTarget"/>
|