Skip to content

Instantly share code, notes, and snippets.

@fushnisoft fushnisoft/clarion.exe.config Secret
Created Nov 5, 2013

Embed
What would you like to do?
log4net appender to send to fushnisoft papertrailapp account
<log4net>
<appender name="PapertrailRemoteSyslogAppender" type="log4net.Appender.RemoteSyslogAppender">
<facility value="Local6"/>
<identity value="%property{log4net:HostName}" />
<layout type="log4net.Layout.PatternLayout" value="%level %message%newline"/>
<remoteAddress value="logs.papertrailapp.com"/>
<remotePort value="30710"/>
</appender>
<appender name="FileAppender" type="log4net.Appender.FileAppender">
<file value="SharpDevelopLog.txt"/>
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date [%thread] %-5level- %message%newline"/>
</layout>
</appender>
<root>
<level value="DEBUG"/>
<appender-ref ref="PapertrailRemoteSyslogAppender"/>
</root>
</log4net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.