Skip to content

Instantly share code, notes, and snippets.

@ccarrasc
Last active June 19, 2017 11:50
Show Gist options
  • Save ccarrasc/47b109149c62a95a3c48 to your computer and use it in GitHub Desktop.
Save ccarrasc/47b109149c62a95a3c48 to your computer and use it in GitHub Desktop.
log4net UDP Appender to send signals to Graphite server
<appender name="GraphiteUdpAppender" type="log4net.Appender.UdpAppender">
<remoteAddress value="graphiteserver.somewhere.com"/>
<remotePort value="8125"/>
<layout type="log4net.Layout.PatternLayout">
<IgnoresException value="False"/>
<conversionPattern value="%property{log4net:HostName}.log4net.%level:1|kv\n"/>
</layout>
</appender>
<!-- Remember to add the appender to the root
<root>
...
<appender-ref ref="GraphiteUdpAppender" />
</root>
-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment