Skip to content

Instantly share code, notes, and snippets.

@saintedlama
Created March 11, 2014 16:28
Show Gist options
  • Save saintedlama/9489379 to your computer and use it in GitHub Desktop.
Save saintedlama/9489379 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">
<variable name="json" value="{ &quot;level&quot; : &quot;${lowercase:${level}}&quot;, &quot;message&quot; : &quot;${message}&quot; }"/>
<targets>
<target name="udp" xsi:type="Network" address="udp://127.0.0.1:9999" layout="${json}" />
<target name="console" xsi:type="ColoredConsole" layout="${json}"/>
</targets>
<rules>
<logger name="*" minlevel="Trace" writeTo="udp" />
<logger name="*" minlevel="Trace" writeTo="console" />
</rules>
</nlog>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment