Last active
June 19, 2017 11:50
-
-
Save ccarrasc/47b109149c62a95a3c48 to your computer and use it in GitHub Desktop.
log4net UDP Appender to send signals to Graphite server
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
<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