Skip to content

Instantly share code, notes, and snippets.

@mirez
Forked from ccarrasc/log4net.config.xml
Last active August 29, 2015 14:13
Show Gist options
  • Save mirez/724878c01296c6b02cf8 to your computer and use it in GitHub Desktop.
Save mirez/724878c01296c6b02cf8 to your computer and use it in GitHub Desktop.
<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