Created
January 7, 2022 00:40
-
-
Save joshdvir/40c5e720faf875d2e904ea99b8ad43ff to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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