KFDtool/sw/control/KFDtool.Gui/NLog.config

29 lines
1.1 KiB
Plaintext
Raw Permalink Normal View History

2019-07-29 15:24:10 -06:00
<?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"
xsi:schemaLocation="http://www.nlog-project.org/schemas/NLog.xsd NLog.xsd"
autoReload="true"
throwExceptions="false"
internalLogLevel="Off" internalLogFile="c:\temp\nlog-internal.log">
<targets>
2019-09-14 14:21:42 -06:00
<target name="logfile" xsi:type="File" fileName="${specialfolder:folder=CommonApplicationData}/KFDtool/AppLog.txt" layout="-----${longdate}|${level:uppercase=true}|${callsite}|${newline}${message}" />
</targets>
2019-07-29 15:24:10 -06:00
2019-09-14 14:21:42 -06:00
<rules>
<!-- uncomment for full debug logging -->
2019-07-29 15:24:10 -06:00
<!--
2019-09-14 14:21:42 -06:00
<logger name="*" minlevel="Trace" writeTo="logfile" />
2019-07-29 15:24:10 -06:00
-->
2019-09-14 14:21:42 -06:00
<!-- uncomment for full debug logging without adapter serial protocol logging -->
2019-07-29 15:24:10 -06:00
<!--
2019-09-14 14:21:42 -06:00
<logger name="KFDtool.Adapter.Protocol.Serial.*" maxlevel="Debug" final="true" />
<logger name="*" minlevel="Trace" writeTo="logfile" />
2019-07-29 15:24:10 -06:00
-->
2019-09-14 14:21:42 -06:00
<!-- default error only logging -->
2019-07-29 15:24:10 -06:00
<logger name="*" minlevel="Error" writeTo="logfile" />
</rules>
</nlog>