forked from zeldaret/Z64Utils
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathNLog-Debug.config
More file actions
38 lines (33 loc) · 1.38 KB
/
NLog-Debug.config
File metadata and controls
38 lines (33 loc) · 1.38 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
33
34
35
36
37
38
<?xml version="1.0" encoding="utf-8"?>
<!-- NLog-Debug.config -->
<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="false"
throwExceptions="false"
throwConfigExceptions="true"
internalLogLevel="Off" internalLogFile="nlog-internal.log"
>
<!--
NLog Documentation:
https://github.com/NLog/NLog/wiki
List of targets (where to write logs): https://nlog-project.org/config/?tab=targets
List of layout renderers (used as `${...}`): https://nlog-project.org/config/?tab=layout-renderers
-->
<variable name="verbose_layout"
value="${longdate} ${logger} ${callsite}:${callsite-linenumber} ${level} ${message:withException=true}" />
<targets>
<target xsi:type="AsyncWrapper"
name="logfile_async"
overflowAction="Discard"
>
<target name="logfile" xsi:type="File" fileName="${basedir}/logs/${shortdate}.txt"
layout="${verbose_layout}" />
</target>
<target name="logconsole" xsi:type="Console" layout="${verbose_layout}" />
</targets>
<rules>
<logger name="*" minlevel="Debug" writeTo="logconsole" />
<logger name="*" minlevel="Trace" writeTo="logfile_async" />
</rules>
</nlog>