Genocs.Logging 9.0.0-beta002

This is a prerelease version of Genocs.Logging.
There is a newer version of this package available.
See the version list below for details.

Requires NuGet 5.0.0 or higher.

dotnet add package Genocs.Logging --version 9.0.0-beta002
                    
NuGet\Install-Package Genocs.Logging -Version 9.0.0-beta002
                    
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="Genocs.Logging" Version="9.0.0-beta002" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Genocs.Logging" Version="9.0.0-beta002" />
                    
Directory.Packages.props
<PackageReference Include="Genocs.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 Genocs.Logging --version 9.0.0-beta002
                    
#r "nuget: Genocs.Logging, 9.0.0-beta002"
                    
#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 Genocs.Logging@9.0.0-beta002
                    
#: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=Genocs.Logging&version=9.0.0-beta002&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Genocs.Logging&version=9.0.0-beta002&prerelease
                    
Install as a Cake Tool

Genocs.Logging

Genocs Library Banner

Logging abstractions and extensions for Genocs applications. Supports net10.0, net9.0, and net8.0.

Installation

dotnet add package Genocs.Logging

Getting Started

Use this package to wire structured logging, CQRS handler logging behaviors, and correlation-aware middleware.

Main Entry Points

  • UseLogging
  • AddCorrelationContextLogging
  • AddCommandHandlersLogging
  • AddEventHandlersLogging
  • MapLogLevelHandler
  • UseCorrelationContextLogging

Optional payload capture can be enabled via:

{
	"logger": {
		"httpPayload": {
			"enabled": true,
			"captureRequestBody": true,
			"captureResponseBody": false,
			"maxBodyLength": 4096
		}
	}
}

Non-Overlapping Scenarios

Scenario 1: Send Logging, Metrics, and Traces to Azure Application Insights

Use OpenTelemetry Azure Monitor exporter for all three signals and keep Serilog Azure/OTLP sinks disabled to avoid duplicates.

{
	"logger": {
		"otlpEndpoint": null,
		"azure": {
			"enabled": false
		}
	},
	"telemetry": {
		"enabled": true,
		"exporter": {
			"enabled": false
		},
		"azure": {
			"enabled": true,
			"enableTracing": true,
			"enableMetrics": true,
			"enableLogging": true,
			"connectionString": "InstrumentationKey=<<key>>;IngestionEndpoint=https://<<region>>.in.applicationinsights.azure.com/"
		},
		"console": {
			"enabled": false,
			"enableTracing": false,
			"enableMetrics": false,
			"enableLogging": false
		}
	}
}

Scenario 2: Send Only Traces to Jaeger (OTLP)

Use OTLP exporter for tracing only, disable OTLP logs/metrics, and keep Azure sinks disabled.

{
	"logger": {
		"otlpEndpoint": null,
		"azure": {
			"enabled": false
		}
	},
	"telemetry": {
		"enabled": true,
		"exporter": {
			"enabled": true,
			"otlpEndpoint": "http://localhost:4317",
			"protocol": "Grpc",
			"enableTracing": true,
			"enableMetrics": false,
			"enableLogging": false
		},
		"azure": {
			"enabled": false,
			"enableTracing": false,
			"enableMetrics": false,
			"enableLogging": false
		},
		"console": {
			"enabled": false,
			"enableTracing": false,
			"enableMetrics": false,
			"enableLogging": false
		}
	}
}

Support

Release Notes

Product 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on Genocs.Logging:

Package Downloads
Genocs.Tracing

The tracing library to setup OpenTelemetry.

Genocs.Monitoring

Telemetry and Tracing library.

Genocs.Fonet.XsltTransformer

Fonet XSLT to PDF Transformer library.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
9.2.0-beta03 114 11/25/2026
9.2.0-beta02 119 11/14/2026
9.2.0-beta01 98 11/14/2026
9.1.0 158 11/7/2026
9.1.0-beta05 96 11/7/2026
9.1.0-beta04 100 11/4/2026
9.1.0-beta03 96 11/4/2026
9.1.0-beta02 128 10/24/2026
9.1.0-beta01 127 10/23/2026
9.0.2 281 9/1/2026
9.0.1 262 7/18/2026
9.0.0 357 5/21/2026
9.0.0-beta009 177 5/11/2026
9.0.0-beta008 345 5/2/2026
9.0.0-beta007 139 4/29/2026
9.0.0-beta006 142 4/27/2026
9.0.0-beta005 162 4/26/2026
9.0.0-beta004 141 4/18/2026
9.0.0-beta003 182 4/5/2026
9.0.0-beta002 189 3/17/2026
Loading failed

The change log and breaking changes are listed here.
           https://github.com/Genocs/genocs-library/releases