-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNLog.config
19 lines (18 loc) · 1.18 KB
/
NLog.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?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" throwExceptions="true" internalLogToConsole="true">
<targets>
<target name="logfile" xsi:type="File" fileName="${specialfolder:folder=ApplicationData}/TVRename/log/TVRename.log"
layout="${date:format=yyyy-MM-dd HH\:mm\:ss}|${level:uppercase=true}| ${message} ${exception:format=toString,Data}"
maxArchiveFiles="20"
archiveFileName="${specialfolder:folder=ApplicationData}/TVRename/log/archive/TVRename.{##}.log"
archiveNumbering="Rolling"
archiveEvery="Day"
archiveOldFileOnStartup="true"/>
<target xsi:type="OutputDebugString" name="debug" layout="${date:format=HH\:mm\:ss}|${level:uppercase=true}| ${message} ${exception:format=toString,Data}" />
<target name="console" xsi:type="ColoredConsole" layout="${date:format=HH\:mm\:ss}|${level:uppercase=true}| ${message} ${exception:format=toString,Data}" />
</targets>
<rules>
<logger name="*" minlevel="Info" writeTo="console,debug" />
<logger name="*" minlevel="Info" writeTo="logfile" />
</rules>
</nlog>