-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNLog.config
47 lines (40 loc) · 1.74 KB
/
NLog.config
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?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 C:\Users\Avalerion\.nuget\packages\nlog.schema\5.0.1\contentFiles\any\any\NLog.xsd"
autoReload="true"
throwExceptions="false"
internalLogLevel="Off" internalLogFile="c:\temp\nlog-internal.log">
<!-- optional, add some variables
https://github.com/nlog/NLog/wiki/Configuration-file#variables
-->
<variable name="myvar" value="myvalue"/>
<!--
See https://github.com/nlog/nlog/wiki/Configuration-file
for information on customizing logging rules and outputs.
-->
<!--
add your targets here
See https://github.com/nlog/NLog/wiki/Targets for possible targets.
See https://github.com/nlog/NLog/wiki/Layout-Renderers for the possible layout renderers.
-->
<targets>
<target xsi:type="File"
name="logfile"
layout="${longdate} :: [${level:uppercase=true}] ${message:withexception=true}"
fileName="${basedir}/F1MHn.log"
concurrentWrites="true" />
<target xsi:type="ColoredConsole"
name="logconsole"
layout="[${level:uppercase=true}] ${message:withexception=true}" />
</targets>
<rules>
<!--<logger name="*Quartz*" minlevel="Info" writeTo="logfile" final="true" />-->
<logger name="LogWriter" minlevel="Trace" writeTo="logfile" />
<logger name="LogWriter" minlevel="Debug" writeTo="logconsole" />
<!--
Write all events with minimal level of Debug (So Debug, Info, Warn, Error and Fatal, but not Trace) to "f"
<logger name="*" minlevel="Debug" writeTo="f" />
-->
</rules>
</nlog>