DiagnosticExplorer.Hosting
5.0.18
See the version list below for details.
dotnet add package DiagnosticExplorer.Hosting --version 5.0.18
NuGet\Install-Package DiagnosticExplorer.Hosting -Version 5.0.18
<PackageReference Include="DiagnosticExplorer.Hosting" Version="5.0.18" />
<PackageVersion Include="DiagnosticExplorer.Hosting" Version="5.0.18" />
<PackageReference Include="DiagnosticExplorer.Hosting" />
paket add DiagnosticExplorer.Hosting --version 5.0.18
#r "nuget: DiagnosticExplorer.Hosting, 5.0.18"
#:package DiagnosticExplorer.Hosting@5.0.18
#addin nuget:?package=DiagnosticExplorer.Hosting&version=5.0.18
#tool nuget:?package=DiagnosticExplorer.Hosting&version=5.0.18
DiagnosticExplorer
Add live diagnostic data to a .NET application, then inspect it in a browser.
Dashboard
Inspect registered objects, their properties, and live diagnostic events from one browser view.
Quick Start
This package adds configuration-based Diagnostic Explorer hosting:
<PackageReference Include="DiagnosticExplorer.Hosting" Version="5.0.0" />
This appsettings.json section enables a local viewer and a remote service
connection; use either host or both:
{
"DiagnosticExplorer": {
"Enabled": true,
"Hosts": [
{ "Type": "SelfHost", "Url": "http://127.0.0.1:50001" },
{ "Type": "Remote", "Url": "http://localhost:50000/diagnostics" }
]
}
}
This generic-host setup reads the configuration and starts the selected hosts with the application:
using DiagnosticExplorer;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
await Host.CreateDefaultBuilder(args)
.ConfigureServices(
(context, services) =>
{
services.ConfigureDiagnosticExplorer(diagnostics =>
{
diagnostics.ConfigureHosting(context.Configuration);
ConfigureClasses(diagnostics);
ConfigureEventRoutes(diagnostics);
});
services.AddHostedService<Worker>();
}
)
.Build()
.RunAsync();
This helper chooses which properties to expose:
private static void ConfigureClasses(IDiagConfigurator diagnostics)
{
diagnostics.Configure<Widget>(options =>
{
options.ExcludeAll();
options.Property(widget => widget.Name)
.Named("Widget name")
.Category("Details");
});
diagnostics.Configure<Gadget>(options =>
{
options.IncludeAll();
options.Exclude(gadget => gadget.Id);
options.Property(gadget => gadget.Purpose)
.Category("Details");
});
}
Add WithDrillDown() to inspect a complex value or collection item in an interactive overlay. A dedicated profile can choose what the overlay renders; when it is absent, the normal type profile is reused:
diagnostics.Configure<Widget>(options =>
{
options.Property(widget => widget.Configuration).WithDrillDown();
options.Collection(widget => widget.Components)
.List(items => items.Name(component => component.Name))
.WithDrillDown(maxItems: 50);
});
diagnostics.ConfigureDrillDown<WidgetConfiguration>(options =>
{
options.ExcludeAll();
options.Property(configuration => configuration.Status);
options.Property(configuration => configuration.Owner).WithDrillDown();
});
See fluent diagnostic configuration for property, custom-property, category, limit, and nested drilldown behavior.
This helper routes events from named loggers to separate event sinks:
private static void ConfigureEventRoutes(IDiagConfigurator diagnostics)
{
diagnostics.ConfigureEventRouting(routes =>
routes
.Route("Widgets", route =>
route.AtLeast(LogLevel.Information)
.To("Widgets", "Widget Events"))
.Route("Gadgets", route =>
route.AtLeast(LogLevel.Warning)
.To("Gadgets", "Gadget Warnings")));
}
This registers an object so its configured properties appear in Diagnostic Explorer:
using DiagnosticExplorer;
DiagnosticManager.Register(this, "BagName", "CatName");
This starts and stops the configured hosts in an application without a generic host:
using DiagnosticExplorer;
await DiagnosticHostingService.StartAsync(DiagnosticManager.CurrentConfiguration);
try
{
RunApplication();
}
finally
{
await DiagnosticHostingService.Stop();
}
Run the application and open the configured SelfHost URL in a browser. For a
Remote host, run DiagnosticService, open its configured URL, and select
your registered application.
Download
Download the latest DiagnosticService Windows Service installer.
Microsoft.Extensions.Logging
This optional package forwards Microsoft.Extensions.Logging events to
Diagnostic Explorer:
<PackageReference Include="DiagnosticExplorer.Extensions.Logging" Version="5.0.0" />
This registers the logging provider after ConfigureDiagnosticExplorer:
using DiagnosticExplorer;
using DiagnosticExplorer.Extensions.Logging;
using Microsoft.Extensions.Logging;
services.AddLogging(logging => logging.AddDiagnosticExplorer());
The provider sends matching Microsoft.Extensions.Logging events to Diagnostic Explorer.
NLog
This package adds a Diagnostic Explorer target to NLog:
<PackageReference Include="DiagnosticExplorer.NLog" Version="5.0.0" />
This configuration sends NLog events through the routes configured above:
using DiagnosticExplorer.NLog;
using NLog;
using NLog.Config;
LoggingConfiguration logging = new();
logging.AddDiagnosticExplorer();
LogManager.Configuration = logging;
Serilog
This package adds a Diagnostic Explorer sink to Serilog:
<PackageReference Include="DiagnosticExplorer.Serilog" Version="5.0.0" />
This configuration sends Serilog events through the routes configured above:
using DiagnosticExplorer.Serilog;
using Serilog;
using ILogger logger = new LoggerConfiguration()
.MinimumLevel.Verbose()
.WriteTo.DiagnosticExplorer()
.CreateLogger();
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. 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 Framework | net48 is compatible. net481 was computed. |
-
.NETFramework 4.8
- DiagnosticExplorer (>= 5.0.18)
- DiagnosticExplorer.Log4Net (>= 5.0.18)
- Microsoft.AspNet.SignalR (>= 2.4.3)
- Microsoft.AspNetCore.SignalR.Client (>= 8.0.0)
- Microsoft.Bcl.AsyncInterfaces (>= 8.0.0)
- Microsoft.Extensions.Configuration.Binder (>= 8.0.0)
- Microsoft.Extensions.Hosting (>= 8.0.0)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 8.0.0)
- Microsoft.Owin (>= 4.2.2)
- Microsoft.Owin.Host.HttpListener (>= 4.2.2)
- Microsoft.Owin.Hosting (>= 4.2.2)
- System.Reactive (>= 5.0.0)
- TypedSignalR.Client (>= 3.6.0)
-
net8.0
- DiagnosticExplorer (>= 5.0.18)
- DiagnosticExplorer.Log4Net (>= 5.0.18)
- Microsoft.AspNetCore.SignalR.Client (>= 8.0.0)
- Microsoft.Bcl.AsyncInterfaces (>= 8.0.0)
- Microsoft.Extensions.Configuration.Binder (>= 8.0.0)
- Microsoft.Extensions.Hosting (>= 8.0.0)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 8.0.0)
- System.Reactive (>= 5.0.0)
- TypedSignalR.Client (>= 3.6.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 5.3.2 | 449 | 9/27/2026 |
| 5.3.1 | 115 | 9/27/2026 |
| 5.3.0 | 418 | 9/2/2026 |
| 5.2.0 | 129 | 9/2/2026 |
| 5.1.0 | 132 | 9/1/2026 |
| 5.0.31 | 131 | 8/31/2026 |
| 5.0.30 | 130 | 8/30/2026 |
| 5.0.29 | 130 | 8/30/2026 |
| 5.0.28 | 120 | 8/29/2026 |
| 5.0.27 | 131 | 8/29/2026 |
| 5.0.26 | 132 | 8/28/2026 |
| 5.0.25 | 121 | 8/28/2026 |
| 5.0.24 | 114 | 8/28/2026 |
| 5.0.23 | 115 | 8/28/2026 |
| 5.0.22 | 110 | 8/28/2026 |
| 5.0.21 | 107 | 8/28/2026 |
| 5.0.20 | 123 | 8/28/2026 |
| 5.0.19 | 119 | 8/28/2026 |
| 5.0.18 | 124 | 8/27/2026 |
| 5.0.17 | 111 | 8/27/2026 |