New Microsoft ILogger integration with Raygun

| 2 min. (335 words)

That’s a wrap on Raygun’s 12 Days of Christmas 2024! Over the past two weeks, we’ve rolled out daily updates featuring bug fixes and feature improvements inspired by your feedback. These small but mighty changes are all about making Raygun faster, smoother, and easier to use. Thanks for helping us level up—your input makes all the difference.


Our special thanks to Blair from New Zealand who suggested this great idea!

What is it?

We’ve added support for Microsoft’s ILogger to the Raygun4Net provider! Once configured, exceptions recorded with ILogger are sent straight to Raygun automatically—no extra code or custom logic required. This makes it easier than ever for .NET developers to integrate Raygun into their apps and take advantage of powerful exception tracking to squash bugs faster.

Where is it and how does it work?

Install the NuGet package ‘Mindscape.Raygun4Net.Extensions.Logging’ and add it to your service container:

builder.Logging.AddRaygunLogger();

Make sure you set the API key in the Raygun4Net provider.

builder.Services.AddRaygun(options =>
{
  options.ApiKey = "*your_api_key*";
});

Check out our example implementations for both background services and ASP.NET web applications for more information.

Where can I learn more?

You can find further details about Raygun ILogger support in our documentation.

Thanks for following along!

Merry Christmas from all of us at Raygun 🎄

Other 12 Days of Christmas improvements: