<?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="true"
      internalLogLevel="Off" internalLogFile="${tempdir}\nlog-internal.log">

  <targets>
    <wrapper-target xsi:type="BufferingWrapper" flushTimeout="3000" name="logfile">
      <target xsi:type="File" name="logfile_inner"
              fileName="${gdc:item=LogDirPath}/InazumaSearch_${shortdate}.log"
              layout="${longdate}|${level:uppercase=true}|${logger}|${message}"
              encoding="UTF-8" />
    </wrapper-target>

    <wrapper-target xsi:type="BufferingWrapper" flushTimeout="3000" name="logfile_debug">
      <target xsi:type="File" name="logfile_debug_inner"
              fileName="${gdc:item=LogDirPath}/InazumaSearch_${shortdate}_debug.log"
              layout="${longdate}|${level:uppercase=true}|${logger}|${message}"
              encoding="UTF-8" />
    </wrapper-target>

    <wrapper-target xsi:type="BufferingWrapper" flushTimeout="3000" name="logfile_trace">
      <target xsi:type="File" name="logfile_trace_inner"
              fileName="${gdc:item=LogDirPath}/InazumaSearch_${shortdate}_trace.log"
              layout="${longdate}|${level:uppercase=true}|${logger}|${message}"
              encoding="UTF-8" />
    </wrapper-target>

    <target name="logconsole" xsi:type="Console" />
  </targets>

  <rules>
    <logger name="*" minlevel="Info" writeTo="logfile"/>
    <logger name="*" minlevel="Debug" writeTo="logfile_debug" />
    <logger name="*" minlevel="Trace" writeTo="logfile_trace"/>
    <logger name="*" minlevel="Debug" writeTo="logconsole" />
  </rules>
</nlog>
