Dignus.Extensions.Logging
1.0.12
.NET 8.0
This package targets .NET 8.0. The package is compatible with this framework or higher.
.NET Standard 2.1
This package targets .NET Standard 2.1. The package is compatible with this framework or higher.
.NET Framework 4.8
This package targets .NET Framework 4.8. The package is compatible with this framework or higher.
dotnet add package Dignus.Extensions.Logging --version 1.0.12
NuGet\Install-Package Dignus.Extensions.Logging -Version 1.0.12
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Dignus.Extensions.Logging" Version="1.0.12" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Dignus.Extensions.Logging" Version="1.0.12" />
<PackageReference Include="Dignus.Extensions.Logging" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Dignus.Extensions.Logging --version 1.0.12
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Dignus.Extensions.Logging, 1.0.12"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Dignus.Extensions.Logging@1.0.12
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Dignus.Extensions.Logging&version=1.0.12
#tool nuget:?package=Dignus.Extensions.Logging&version=1.0.12
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Dignus.Extensions.Logging
Integration module connecting Dignus.Log with Microsoft.Extensions.Logging.
Provides a lightweight, zero-GC logging bridge that enables seamless use of Dignus’ high-performance logger
within the standard ASP.NET Core and .NET logging infrastructure.
Features
| Feature | Description |
|---|---|
| ASP.NET Core Integration | Enables Dignus logging through the ILogger interface and ILoggerFactory. |
| Zero-GC Logging | Inherits the allocation-free design of Dignus.Log for high throughput. |
| Category Support | Adds log category support (${category}) for structured log output. |
| Scope Handling | Fully compatible with .NET’s IExternalScopeProvider. |
| Automatic Registration | AddDignusLog() extension method integrates logging and configuration automatically. |
Core APIs
| API | Purpose |
|---|---|
AddDignusLog(this IServiceCollection services, LogConfiguration logConfiguration) |
Registers the Dignus logging provider and initializes log configuration. |
DignusLoggerProvider |
Implements ILoggerProvider to route .NET log events into the Dignus logger. |
DignusLogger |
Handles ILogger calls, converts log levels, and formats categorized log entries. |
Example
using Dignus.Extensions.Logging;
using Dignus.Log;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
var services = new ServiceCollection();
// Load Dignus logging configuration
var logConfig = LogConfigXmlReader.Load("log.config");
// Integrate with Microsoft.Extensions.Logging
services.AddLogging(builder =>
{
builder.ClearProviders();
builder.AddDignusLog(logConfig);
});
var provider = services.BuildServiceProvider();
var logger = provider.GetRequiredService<ILogger<Program>>();
logger.LogInformation("Hello from Dignus Logging!");
Design Principles
- Zero Allocation: All log formatting and dispatch avoid GC allocations.
- Category Awareness: Extends
LogEventto include category metadata for structured logging. - Optimized Formatting: Uses cached delegates for element rendering to minimize overhead.
- Full .NET Integration: Works natively with ASP.NET Core’s logging pipeline.
- Scoped Logging Support: Handles
IExternalScopeProviderandBeginScope()seamlessly.
| 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 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 is compatible. 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 is compatible. 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 | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 is compatible. |
| .NET Framework | net48 is compatible. net481 is compatible. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.8
- Dignus.Log (>= 1.0.11)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.5)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.5)
-
.NETFramework 4.8.1
- Dignus.Log (>= 1.0.11)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.5)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.5)
-
.NETStandard 2.1
- Dignus.Log (>= 1.0.11)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.5)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.5)
-
net10.0
- Dignus.Log (>= 1.0.11)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.5)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.5)
-
net8.0
- Dignus.Log (>= 1.0.11)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.5)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.5)
-
net9.0
- Dignus.Log (>= 1.0.11)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.5)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.5)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.