Log GUI errors to ProgramData

This commit is contained in:
Daniel Dugger 2019-08-11 16:21:35 -04:00
parent 33c215d06a
commit 9f0a6b894e
1 changed files with 1 additions and 3 deletions

View File

@ -23,8 +23,7 @@
See https://github.com/nlog/NLog/wiki/Layout-Renderers for the possible layout renderers.
-->
<target name="logfile" xsi:type="File" fileName="log.txt" layout="-----|${level:uppercase=true}|${longdate}|${callsite}|${newline}${message}" />
<target name="logconsole" xsi:type="Console" layout="-----|${level:uppercase=true}|${longdate}|${callsite}|${newline}${message}" />
<target name="logfile" xsi:type="File" fileName="${specialfolder:folder=CommonApplicationData}/KFDtool/GuiLog.txt" layout="-----${longdate}|${level:uppercase=true}|${callsite}|${newline}${message}" />
<!--
Write events to a file with the date in the filename.
@ -36,7 +35,6 @@
<rules>
<!-- add your logging rules here -->
<logger name="KFDtool.Adapter.Protocol.Serial.*" maxlevel="Debug" final="true" /> <!-- drop trace and debug messages -->
<logger name="*" minlevel="Error" writeTo="logfile" />
<!--