Genocs.Logging
9.0.0-beta002
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
<PackageReference Include="Genocs.Logging" Version="9.0.0-beta002" />
<PackageVersion Include="Genocs.Logging" Version="9.0.0-beta002" />
<PackageReference Include="Genocs.Logging" />
paket add Genocs.Logging --version 9.0.0-beta002
#r "nuget: Genocs.Logging, 9.0.0-beta002"
#:package Genocs.Logging@9.0.0-beta002
#addin nuget:?package=Genocs.Logging&version=9.0.0-beta002&prerelease
#tool nuget:?package=Genocs.Logging&version=9.0.0-beta002&prerelease
Genocs.Logging

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
UseLoggingAddCorrelationContextLoggingAddCommandHandlersLoggingAddEventHandlersLoggingMapLogLevelHandlerUseCorrelationContextLogging
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
- Documentation Portal: https://learn.fiscanner.net/
- Documentation: https://github.com/Genocs/genocs-library/tree/main/docs
- Repository: https://github.com/Genocs/genocs-library
Release Notes
| 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 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. |
-
net10.0
- Genocs.Core (>= 9.0.0-beta002)
- Microsoft.ApplicationInsights (>= 2.23.0)
- Serilog.AspNetCore (>= 10.0.0)
- Serilog.Enrichers.Environment (>= 3.0.1)
- Serilog.Enrichers.Process (>= 3.0.0)
- Serilog.Enrichers.Span (>= 3.1.0)
- Serilog.Enrichers.Thread (>= 4.0.0)
- Serilog.Exceptions (>= 8.4.0)
- Serilog.Sinks.ApplicationInsights (>= 5.0.0)
- Serilog.Sinks.Async (>= 2.1.0)
- Serilog.Sinks.ElasticSearch (>= 10.0.0)
- Serilog.Sinks.File (>= 7.0.0)
- Serilog.Sinks.Grafana.Loki (>= 8.3.2)
- Serilog.Sinks.OpenTelemetry (>= 4.2.0)
- Serilog.Sinks.Seq (>= 9.0.0)
- SmartFormat.NET (>= 3.6.1)
-
net8.0
- Genocs.Core (>= 9.0.0-beta002)
- Microsoft.ApplicationInsights (>= 2.23.0)
- Serilog.AspNetCore (>= 10.0.0)
- Serilog.Enrichers.Environment (>= 3.0.1)
- Serilog.Enrichers.Process (>= 3.0.0)
- Serilog.Enrichers.Span (>= 3.1.0)
- Serilog.Enrichers.Thread (>= 4.0.0)
- Serilog.Exceptions (>= 8.4.0)
- Serilog.Sinks.ApplicationInsights (>= 5.0.0)
- Serilog.Sinks.Async (>= 2.1.0)
- Serilog.Sinks.ElasticSearch (>= 10.0.0)
- Serilog.Sinks.File (>= 7.0.0)
- Serilog.Sinks.Grafana.Loki (>= 8.3.2)
- Serilog.Sinks.OpenTelemetry (>= 4.2.0)
- Serilog.Sinks.Seq (>= 9.0.0)
- SmartFormat.NET (>= 3.6.1)
-
net9.0
- Genocs.Core (>= 9.0.0-beta002)
- Microsoft.ApplicationInsights (>= 2.23.0)
- Serilog.AspNetCore (>= 10.0.0)
- Serilog.Enrichers.Environment (>= 3.0.1)
- Serilog.Enrichers.Process (>= 3.0.0)
- Serilog.Enrichers.Span (>= 3.1.0)
- Serilog.Enrichers.Thread (>= 4.0.0)
- Serilog.Exceptions (>= 8.4.0)
- Serilog.Sinks.ApplicationInsights (>= 5.0.0)
- Serilog.Sinks.Async (>= 2.1.0)
- Serilog.Sinks.ElasticSearch (>= 10.0.0)
- Serilog.Sinks.File (>= 7.0.0)
- Serilog.Sinks.Grafana.Loki (>= 8.3.2)
- Serilog.Sinks.OpenTelemetry (>= 4.2.0)
- Serilog.Sinks.Seq (>= 9.0.0)
- SmartFormat.NET (>= 3.6.1)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Genocs.Logging:
| Package | Downloads |
|---|---|
|
Genocs.Tracing
The tracing library to setup OpenTelemetry. |
|
|
Genocs.Monitoring
Telemetry and Tracing library. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 9.0.0-beta002 | 100 | 3/17/2026 |
| 9.0.0-beta001 | 109 | 2/28/2026 |
| 8.1.0 | 164 | 2/8/2026 |
| 8.0.0 | 2,679 | 11/23/2025 |
| 7.5.1 | 2,709 | 10/19/2025 |
| 7.5.0 | 5,364 | 10/12/2025 |
| 7.4.1 | 2,053 | 9/19/2025 |
| 7.4.0 | 298 | 9/19/2025 |
| 7.3.0 | 8,380 | 8/14/2025 |
| 7.2.5 | 13,731 | 5/1/2025 |
| 7.2.4 | 2,224 | 4/18/2025 |
| 7.2.3 | 17,603 | 1/20/2025 |
| 7.2.2 | 858 | 12/31/2024 |
| 7.2.1 | 11,986 | 12/15/2024 |
| 7.2.0 | 1,048 | 12/14/2024 |
| 7.1.0 | 3,920 | 11/29/2024 |
| 7.0.0 | 8,374 | 11/24/2024 |
| 6.4.0 | 14,878 | 11/10/2024 |
| 6.3.0 | 14,240 | 11/3/2024 |
| 6.2.0 | 7,808 | 10/22/2024 |
The change log and breaking changes are listed here.
https://github.com/Genocs/genocs-library/releases