v1.2
This commit is contained in:
36
FSI.BT.Tools/nlog.config
Normal file
36
FSI.BT.Tools/nlog.config
Normal file
@@ -0,0 +1,36 @@
|
||||
<?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"
|
||||
autoReload="true"
|
||||
throwExceptions="false">
|
||||
|
||||
<variable name="appName" value="FSI.BT.Tools" />
|
||||
|
||||
<!-- the targets to write to -->
|
||||
<targets>
|
||||
<!-- write logs to file -->
|
||||
<target xsi:type="File"
|
||||
name="logfile"
|
||||
fileName="logs/${appName}.log"
|
||||
archiveFileName ="logs/{#}_${appName}.log"
|
||||
archiveNumbering ="Date" archiveEvery="Day"
|
||||
archiveDateFormat="yyyyMMdd"/>
|
||||
|
||||
<target name="viewer"
|
||||
xsi:type="NLogViewer"
|
||||
includeSourceInfo="true"
|
||||
address="udp://FDESINB5501:9999"/>
|
||||
|
||||
</targets>
|
||||
|
||||
<!-- rules to map from logger name to target -->
|
||||
<rules>
|
||||
<logger name="*"
|
||||
minlevel="Trace"
|
||||
writeTo="logfile,logconsole,console" />
|
||||
|
||||
<logger name="*"
|
||||
minlevel="Debug"
|
||||
writeTo="viewer" />
|
||||
</rules>
|
||||
</nlog>
|
||||
Reference in New Issue
Block a user