Skip to content

Instantly share code, notes, and snippets.

@haf
Created June 26, 2012 21:53
Show Gist options
  • Save haf/2999461 to your computer and use it in GitHub Desktop.
Save haf/2999461 to your computer and use it in GitHub Desktop.
Minimal NLog.RabbitMQ configuration
<?xml version="1.0" encoding="utf-8" ?>
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
xmlns:haf="https://github.com/haf/NLog.RabbitMQ/raw/master/src/schemas/NLog.RabbitMQ.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
internalLogToConsole="true">
<extensions>
<add assembly="NLog.Targets.RabbitMQ" />
</extensions>
<targets async="true">
<target name="RabbitMQTarget"
xsi:type="RabbitMQ"
useJSON="true"
layout="${message}"
/>
</targets>
<rules>
<logger name="*" minlevel="Trace" writeTo="RabbitMQTarget"/>
</rules>
</nlog>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment