Repository navigation
Expand file tree
/
Copy pathNLog.config
More file actions
32 lines (30 loc) · 1.44 KB
/
Copy pathNLog.config
File metadata and controls
32 lines (30 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?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">
<!--
See https://github.com/nlog/nlog/wiki/Configuration-file
for information on customizing logging rules and outputs.
-->
<targets async="true">
<target name="console" xsi:type="ColoredConsole" layout="${date:format=HH\:mm\:ss}| [TID:${threadid}] | ${message}" />
<target name="InfoFile" xsi:type="File"
fileName="${basedir}/Logs/Info_${logger}.log"
archiveAboveSize="128000000"
archiveFileName="${basedir}/Logs/Info_${date:format=MMddHHmm}/${shortdate}.{#####}.log"
archiveNumbering="Sequence"
concurrentWrites="false"
layout="[${date}] [TID:${threadid}] | ${message}" />
<target name="ErrorFile" xsi:type="File"
fileName="${basedir}/Logs/Error_${logger}.log"
archiveAboveSize="128000000"
archiveFileName="${basedir}/Logs/Error_${date:format=MMddHHmm}/${shortdate}.{#####}.log"
archiveNumbering="Sequence"
concurrentWrites="false"
layout="[${date}] [TID:${threadid}] [${stacktrace}]: ${message}" />
</targets>
<rules>
<logger name="*" minlevel="Debug" maxlevel="Info" writeTo="InfoFile" />
<logger name="*" minlevel="Error" writeTo="ErrorFile" />
<logger name="*" minlevel="Debug" writeTo="console" />
</rules>
</nlog>