<?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">

  <!-- 
  See http://nlog-project.org/wiki/Configuration_file 
  for information on customizing logging rules and outputs.
   -->
  <targets>
    <!-- add your targets here -->

    <!--
	<target xsi:type="File" name="f" fileName="${basedir}/logs/${shortdate}.log"
			layout="${longdate} ${uppercase:${level}} ${message}" />
	-->

    <target xsi:type="Console" name="console"
				layout="${longdate}|${level:uppercase=true}|${logger}|${message}${onexception:${newline}EXCEPTION\:${newline}${exception:format=type,message,method:maxInnerExceptionLevel=5:innerFormat=shortType,message,method}}"/>

    <target name="file" xsi:type="File"
				fileName="${specialfolder:folder=LocalApplicationData}/MarkdownPad 2/markdownpad2.log"
				layout="${longdate}|${level:uppercase=true}|${logger}|${message}${onexception:${newline}EXCEPTION\:${newline}${exception:format=type,message,method:maxInnerExceptionLevel=5:innerFormat=shortType,message,method}${newline}}" />

  </targets>

  <rules>
    <!-- add your logging rules here -->

    <logger name="*" writeTo="file" minlevel="Warn" maxlevel="Fatal" />
    <logger name="*" writeTo="console" />

  </rules>
</nlog>