-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnlog.config
More file actions
16 lines (16 loc) · 1.05 KB
/
nlog.config
File metadata and controls
16 lines (16 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?xml version="1.0" encoding="utf-8" ?>
<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">
<targets>
<target xsi:type="File" name="file" fileName="Log.log" layout="${date} | ${level:uppercase=true:padding=6} | ${message} ${exception}" />
<target xsi:type="ColoredConsole" name="console" layout="${date} | ${level:uppercase=true:padding=6} | ${message} ${exception}" useDefaultRowHighlightingRules="false">
<highlight-row condition="level == LogLevel.Debug" foregroundColor="DarkGray" />
<highlight-row condition="level == LogLevel.Info" foregroundColor="Gray" />
<highlight-row condition="level == LogLevel.Warn" foregroundColor="Yellow" />
<highlight-row condition="level == LogLevel.Error" foregroundColor="Magenta" />
<highlight-row condition="level == LogLevel.Fatal" foregroundColor="Red" />
</target>
</targets>
<rules>
<logger name="*" minlevel="Trace" writeTo="file,console" />
</rules>
</nlog>