Skip to content

rogersillito/SentryAppender

 
 

Repository files navigation

SentryAppender

log4net appender to send errors to Sentry.

Configure in app.config:

<log4net>
	<root>
		<level value="DEBUG" />
		<appender-ref ref="SentryAppender" />
	</root>
	<appender name="SentryAppender" type="SharpRaven.Log4Net.SentryAppender, SharpRaven.Log4Net">
		<DSN value="DSN_FROM_SENTRY_UI" />
		<Logger value="LOGGER_NAME" />
		<threshold value="ERROR" />
		<layout type="log4net.Layout.PatternLayout">
			<conversionPattern value="%5level - %message%newline" />
		</layout>
	</appender>
</log4net>

To debug issues with events not reaching sentry, turn on log4net logging: http://haacked.com/archive/2006/09/27/Log4Net_Troubleshooting.aspx/

About

Uses log4net to send errors to Sentry (http://www.getsentry.com)

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 83.0%
  • PowerShell 12.6%
  • Classic ASP 4.4%