Dignus.Extensions.Logging 1.0.12

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" />
                    
Directory.Packages.props
<PackageReference Include="Dignus.Extensions.Logging" />
                    
Project file
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
                    
#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
                    
Install as a Cake Addin
#tool nuget:?package=Dignus.Extensions.Logging&version=1.0.12
                    
Install as a Cake Tool

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 LogEvent to 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 IExternalScopeProvider and BeginScope() seamlessly.

Product 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.

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
1.0.12 96 5/8/2026
1.0.11 88 4/25/2026
1.0.10 108 2/21/2026
1.0.9 433 12/11/2025
1.0.8 173 11/23/2025
1.0.7 244 11/22/2025
1.0.6 410 11/19/2025
1.0.5 172 11/2/2025
1.0.3 210 10/30/2025
1.0.2 204 10/29/2025
1.0.1 196 10/28/2025
1.0.0 198 10/28/2025