<?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">

  <!-- make sure to set 'Copy To Output Directory' option for this file -->
  <!-- go to http://nlog-project.org/wiki/Configuration_file for more information -->

  <!--The setting below will log file date, but old files won't be deleted-->
  <!--archiveFileName="D:/Logs/WatchDog/${date:format=yyyy-MM-dd_HH;mm;ss}_Watchdog_{#}.log"-->

  <targets>
    <target
      name="logfile"
      xsi:type="File"
      fileName="${specialfolder:folder=CommonApplicationData}/General Devices/MySQL Export/Log/log.txt"
      archiveAboveSize="524288"
      maxArchiveFiles="10"
      archiveFileName="${specialfolder:folder=CommonApplicationData}/General Devices/MySQL Export/Log/log_{#}.txt"
      layout="${date:format=yyyy-MM-dd HH\:mm\:ss.fff}|${level}|${message}  ${exception:format=tostring}"
	/>
    <target
  name="output"
  xsi:type="Debugger"
  layout="${message}  ${exception:format=tostring}"
	/>
  </targets>

  <rules>
    <logger name="*" minlevel="Info" writeTo="logfile" />
    <logger name="*" minlevel="Trace" writeTo="output" />
  </rules>
</nlog>