-
Notifications
You must be signed in to change notification settings - Fork 0
/
nlog.config.xml
16 lines (14 loc) · 985 Bytes
/
nlog.config.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?xml version="1.0" encoding="UTF-8"?>
<!-- XSD manual extracted from package NLog.Schema: https://www.nuget.org/packages/NLog.Schema-->
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xsi:schemaLocation="NLog NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" autoReload="true" internalLogFile="c:\temp\console-example-internal.log" internalLogLevel="Debug">
<!-- the targets to write to -->
<targets>
<!-- write logs to file -->
<target xsi:type="File" name="logfile" fileName="${environment:TEMP}/MazeGame.log" layout="${longdate}|${level}|${message} |${all-event-properties} ${exception:format=tostring}" deleteOldFileOnStartup="true"/>
<target xsi:type="Console" name="logconsole" layout="${longdate}|${level}|${message} |${all-event-properties} ${exception:format=tostring}"/>
</targets>
<!-- rules to map from logger name to target -->
<rules>
<logger name="*" minlevel="Info" writeTo="logfile,logconsole"/>
</rules>
</nlog>