Skip to content

Instantly share code, notes, and snippets.

@joshdvir
Created January 7, 2022 00:40
Show Gist options
  • Save joshdvir/40c5e720faf875d2e904ea99b8ad43ff to your computer and use it in GitHub Desktop.
Save joshdvir/40c5e720faf875d2e904ea99b8ad43ff to your computer and use it in GitHub Desktop.
<?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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment