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

  <variable name="logDirectory" value="${basedir}/logs"/>

  <targets>
    <target xsi:type="AsyncWrapper" name="asyncLog">
      <target name="file" xsi:type="File"  fileName="${logDirectory}/nlog-${shortdate}.log" layout="${longdate} ${message} ${exception:format=tostring}" encoding="utf-8"/>
    </target>
  </targets>

  <rules>
    <logger name="*" minlevel="Trace" writeTo="asyncLog" />
    <logger name="*" minlevel="Trace" writeTo="console" />
  </rules>
</nlog>
