DiagnosticExplorer.Log4Net
5.0.17
See the version list below for details.
dotnet add package DiagnosticExplorer.Log4Net --version 5.0.17
NuGet\Install-Package DiagnosticExplorer.Log4Net -Version 5.0.17
<PackageReference Include="DiagnosticExplorer.Log4Net" Version="5.0.17" />
<PackageVersion Include="DiagnosticExplorer.Log4Net" Version="5.0.17" />
<PackageReference Include="DiagnosticExplorer.Log4Net" />
paket add DiagnosticExplorer.Log4Net --version 5.0.17
#r "nuget: DiagnosticExplorer.Log4Net, 5.0.17"
#:package DiagnosticExplorer.Log4Net@5.0.17
#addin nuget:?package=DiagnosticExplorer.Log4Net&version=5.0.17
#tool nuget:?package=DiagnosticExplorer.Log4Net&version=5.0.17
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 | 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
- DiagnosticExplorer (>= 5.0.17)
- log4net (>= 3.3.1)
- Microsoft.Extensions.Configuration.Binder (>= 8.0.0)
- Microsoft.Extensions.Configuration.Json (>= 8.0.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on DiagnosticExplorer.Log4Net:
| Package | Downloads |
|---|---|
|
DiagnosticExplorer.Hosting
Diagnostic Explorer libraries for runtime object inspection, event sinks, logging integration, and diagnostics hosting. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 5.3.2 | 452 | 9/27/2026 |
| 5.3.1 | 126 | 9/27/2026 |
| 5.3.0 | 427 | 9/2/2026 |
| 5.2.0 | 142 | 9/2/2026 |
| 5.1.0 | 153 | 9/1/2026 |
| 5.0.31 | 137 | 8/31/2026 |
| 5.0.30 | 127 | 8/30/2026 |
| 5.0.29 | 138 | 8/30/2026 |
| 5.0.28 | 127 | 8/29/2026 |
| 5.0.27 | 126 | 8/29/2026 |
| 5.0.26 | 140 | 8/28/2026 |
| 5.0.25 | 130 | 8/28/2026 |
| 5.0.24 | 135 | 8/28/2026 |
| 5.0.23 | 132 | 8/28/2026 |
| 5.0.22 | 140 | 8/28/2026 |
| 5.0.21 | 129 | 8/28/2026 |
| 5.0.20 | 142 | 8/28/2026 |
| 5.0.19 | 131 | 8/28/2026 |
| 5.0.18 | 136 | 8/27/2026 |
| 5.0.17 | 130 | 8/27/2026 |