Instantly share code, notes, and snippets.
-
Re-Leased
- New Zealand
j5alive
/ RaygunBreadcrumbAttribute.cs
Last active
June 7, 2017 08:54
Raygun4Net automatic Breadcrumb logging with ASP.NET MVC
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Reflection; | |
using System.Web.Mvc; | |
using Mindscape.Raygun4Net; | |
using Mindscape.Raygun4Net.Breadcrumbs; | |
namespace Raygun.Examples | |
{ |
j5alive
/ RaygunBreadcrumbTarget.cs
Last active
June 7, 2017 08:19
Raygun4Net automatic Breadcrumb logging with NLog
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
using System.Diagnostics; | |
using System.Reflection; | |
using Mindscape.Raygun4Net; | |
using Mindscape.Raygun4Net.Breadcrumbs; | |
using NLog; | |
using NLog.Targets; | |
namespace Raygun.Examples | |
{ | |
[Target("RaygunBreadcrumb")] |
j5alive
/ RaygunBreadcrumbAppender.cs
Last active
June 7, 2017 07:38
Raygun4Net automatic Breadcrumb logging with log4net
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
using log4net.Appender; | |
using log4net.Core; | |
using Mindscape.Raygun4Net; | |
using Mindscape.Raygun4Net.Breadcrumbs; | |
namespace Raygun.Examples | |
{ | |
public class RaygunBreadcrumbAppender : AppenderSkeleton | |
{ | |
protected override void Append(LoggingEvent loggingEvent) |