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

  <targets>
    <target name="file" xsi:type="File"
            fileName="OhmGraphite.log"
            archiveFileName="log-archives/OhmGraphite.{#}.log"
            archiveEvery="Day"
            archiveNumbering="Rolling"
            maxArchiveFiles="7"
            keepFileOpen="false"
            layout="${longdate}|${level:uppercase=true}|${logger}|${message:exceptionSeparator=!:withException=true}"/>
    <target name="console"
            xsi:type="Console"
            layout="${longdate}|${level:uppercase=true}|${logger}|${message:exceptionSeparator=!:withException=true}"/>
  </targets>

  <rules>
    <logger name="*" minlevel="Info" writeTo="file" />
    <logger name="*" minlevel="Info" writeTo="console" />
  </rules>
</nlog>
