BugsRadar 3.0.0.6
dotnet add package BugsRadar --version 3.0.0.6
NuGet\Install-Package BugsRadar -Version 3.0.0.6
<PackageReference Include="BugsRadar" Version="3.0.0.6" />
<PackageVersion Include="BugsRadar" Version="3.0.0.6" />
<PackageReference Include="BugsRadar" />
paket add BugsRadar --version 3.0.0.6
#r "nuget: BugsRadar, 3.0.0.6"
#:package BugsRadar@3.0.0.6
#addin nuget:?package=BugsRadar&version=3.0.0.6
#tool nuget:?package=BugsRadar&version=3.0.0.6
BugsRadar
Project errors monitoring in real time - https://bugsradar.com/
Ways to report: a direct call and an ILogger provider in this package, and Serilog, NLog and log4net in their own packages. Pick any or all of them: while they share one client, one error reaches BugsRadar once.
Install
dotnet add package BugsRadar
Using Serilog, NLog or log4net? Install the package for it instead: it brings this one with it.
| Logger | Package |
|---|---|
| Serilog | dotnet add package BugsRadar.Serilog |
| NLog | dotnet add package BugsRadar.NLog |
| log4net | dotnet add package BugsRadar.Log4Net |
Register the client
using BugsRadar.Extensions.DependencyInjection;
builder.Services.AddBugsRadar(configuration =>
{
configuration.ApiKey = "<your project API key>";
configuration.Environment = builder.Environment.EnvironmentName; // optional
});
The API key is secret: use it only in code that runs on your servers. Never put it in a desktop or mobile app you ship to customers or users (WPF, WinForms, MAUI, Blazor WebAssembly) or in a public repository: anyone can take the key out of them.
1. Direct call
Inject IBugsRadar and report exceptions or your own events:
public class OrderService
{
private readonly IBugsRadar _bugsRadar;
public OrderService(IBugsRadar bugsRadar)
{
_bugsRadar = bugsRadar;
}
public async Task CreateOrder(int orderId)
{
try
{
// ...
}
catch (Exception error)
{
_bugsRadar.SendException(error, "OrderService : CreateOrder", module: "Orders");
// or the full model
_bugsRadar.Send(new BugsRadarEvent
{
Exception = error,
MessageTemplate = "Order {OrderId} failed",
Message = $"Order {orderId} failed",
Properties = { ["OrderId"] = orderId.ToString() },
Module = "Orders"
});
}
}
}
Send and SendException return at once - they queue the event, and a background worker delivers it. Do not await anything here in a catch: the only method that waits for the network is FlushAsync, for a process that is about to exit. Nothing throws: delivery problems are written to ILogger under the category BugsRadar.Client.
2. ILogger provider
Everything you already log at Error and above goes to BugsRadar with its message template, properties, scopes and category:
using BugsRadar.Extensions.Logging;
builder.Services.AddBugsRadar(c => c.ApiKey = "<your project API key>");
builder.Logging.AddBugsRadar();
logger.LogError(ex, "Order {OrderId} failed", 42) arrives with the template Order {OrderId} failed and the property OrderId = 42. The minimum level is BugsRadarConfiguration.MinimumLevel (default Error).
3. Serilog, NLog and log4net
Each has its own package with its own README:
- BugsRadar.Serilog:
WriteTo.BugsRadar(...). Until 3.0.0.2 the sink was in this package; addBugsRadar.Serilogand the code stays the same. - BugsRadar.NLog: the
BugsRadartarget for NLog.config or code. - BugsRadar.Log4Net: the
BugsRadarAppenderfor log4net.config.
Setup for each: ILogger, Serilog, NLog, log4net. The overview, with install, client registration and configuration: https://bugsradar.com/docs/dotnet/
Console applications and scripts
using var bugsRadar = new BugsRadarClient(new BugsRadarConfiguration { ApiKey = "<your project API key>" });
bugsRadar.SendException(error);
await bugsRadar.FlushAsync(); // before exit; Dispose also drains the queue
How events travel
- Events go to an in-process queue and are sent in the background; your code never waits for the network.
- Repeats of the same error within
RepeatInterval(5 seconds) are folded into one request with a count. A crash loop costs one request every few seconds, not thousands per second. - The same exception instance seen twice by one client (logged and reported by hand, or by
ILoggerand Serilog) is sent once. - On
429the client waits as long as the server asks; on5xxand network failures it retries three times. - When the application stops,
Disposedrains the queue forShutdownTimeout(10 seconds).
Configuration
| Property | Default | Meaning |
|---|---|---|
ApiKey |
- | Project API key from app.bugsradar.com. Required. |
Environment |
null |
Default environment name for events. |
Host |
machine name | Default host for events. |
AppVersion |
entry assembly version | Default application version. Not used for grouping. |
MinimumLevel |
Error |
Minimum level for the ILogger provider. |
RepeatInterval |
5 s | Repeats within this interval travel as one request. |
QueueCapacity |
1000 | Queued events beyond this are dropped with a warning. |
ShutdownTimeout |
10 s | How long Dispose waits for the queue to drain. |
RequestTimeout |
15 s | One request to the server. |
ApiUrl |
api.bugsradar.com | Change only for a self-hosted BugsRadar. |
Dependencies
Floors, not latest: Microsoft.Extensions.Http 8.0, Microsoft.Extensions.Logging.Abstractions 8.0, Newtonsoft.Json 13.0.4. If your application already uses newer versions, they stay as they are. Serilog, NLog and log4net come only with their own packages.
Versions below 3.0.0.1 are deprecated
API v2 is shut down. Versions below 3.0.0.1 no longer deliver error reports and are not supported - update to 3.0.0.1 or later. The package major version matches the API version it talks to: 3.x uses API v3.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Microsoft.Extensions.Http (>= 8.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.0)
- Newtonsoft.Json (>= 13.0.4)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on BugsRadar:
| Package | Downloads |
|---|---|
|
BugsRadar.Serilog
BugsRadar sink for Serilog: errors of your .NET application in Telegram, Discord or Pushover |
|
|
BugsRadar.NLog
BugsRadar target for NLog: errors of your .NET application in Telegram, Discord or Pushover |
|
|
BugsRadar.Log4Net
BugsRadar appender for log4net: errors of your .NET application in Telegram, Discord or Pushover |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.0.0.6 | 234 | 10/1/2026 |
3.0.0.6: fixes builder.Logging.AddBugsRadar(), which threw ArgumentException at startup in 3.0.0.1-3.0.0.5 ("Implementation type cannot be 'ILoggerProvider'"); the provider is registered under its own type now. If your application uses the ILogger provider, update: no earlier 3.0.0.x starts with it. Property names are sent as you wrote them; until now the package turned OrderId into orderId. Only the package's own log categories are kept out of the reports, BugsRadar.Client and the handlers of its HttpClient (BugsRadarClient.IsOwnCategory); other categories that start with BugsRadar, your own BugsRadar.* namespace for one, were dropped before and are reported now. BugsRadar.Serilog, BugsRadar.NLog and BugsRadar.Log4Net are released with the same version. 3.0.0.5: no code changes; the author of the package is now BistriySpzoo, the same as the owner on nuget.org. 3.0.0.4: no code changes; the README and the package links point to the new documentation pages at bugsradar.com. 3.0.0.3: the Serilog sink moved to its own package, BugsRadar.Serilog, and this package no longer depends on Serilog. If you use WriteTo.BugsRadar, add BugsRadar.Serilog: the method and the namespace BugsRadar.Extensions.Serilog are unchanged. New packages: BugsRadar.NLog (an NLog target) and BugsRadar.Log4Net (a log4net appender). 3.0.0.2: SendAsync and SendExceptionAsync are removed. They completed only after the event had been delivered, so awaiting one in a catch block put a network round trip into the caller's path; Send and SendException already queue the event and return at once, with the same duplicate filtering, repeat aggregation and retries. Use FlushAsync (or Dispose) before a short-lived process exits. 3.0.0.1: uses API v3 (API v2 is shut down); the package major version now matches the API version. Versions below 3.0.0.1 no longer deliver error reports and are not supported. New: one event model (BugsRadarEvent) for direct calls, an ILogger provider (builder.Logging.AddBugsRadar()) and a Serilog sink (WriteTo.BugsRadar); events are queued and sent in the background, repeats of the same error are folded into one request with a count, duplicates across entry points are dropped. Delivery problems are written to ILogger. Targets .NET Standard 2.0; dependency floors: Microsoft.Extensions.Http 8.0, Serilog 4.4, Newtonsoft.Json 13.0.4. The package no longer depends on ASP.NET Core: if your app calls AddNewtonsoftJson and relied on BugsRadar 1.x to bring it in, reference Microsoft.AspNetCore.Mvc.NewtonsoftJson directly.