Building robust .NET applications means knowing when your users encounter errors in production, but traditional logging often misses critical exceptions or lacks the context needed for quick debugging. We've brought Honeybadger's powerful error tracking to the .NET ecosystem, giving your .NET and C# applications the monitoring they deserve.
The Honeybadger .NET package uses middleware to automatically capture unhandled exceptions with full stack traces and environment information. Key features include:
- Flexible configuration through code or
appsettings.json
- Custom context and metadata for tracking user sessions, feature flags, and more
- Breadcrumb trails to trace events leading to errors
- Seamless dependency injection support
- Optional logging provider for .NET's built-in framework
The integration respects environment settings, skipping error reporting in development unless explicitly configured.
Setup takes just a few minutes: install the NuGet package, register Honeybadger in your application with your API key, and you're done. Honeybadger will begin to report production exceptions as soon as you deploy your application. Honeybadger supports all modern .NET Core applications.
Check out the Honeybadger for .NET docs for detailed setup instructions and advanced usage examples.