CSharpEssentials.LoggerHelper
3.0.2
See the version list below for details.
dotnet add package CSharpEssentials.LoggerHelper --version 3.0.2
NuGet\Install-Package CSharpEssentials.LoggerHelper -Version 3.0.2
<PackageReference Include="CSharpEssentials.LoggerHelper" Version="3.0.2" />
<PackageVersion Include="CSharpEssentials.LoggerHelper" Version="3.0.2" />
<PackageReference Include="CSharpEssentials.LoggerHelper" />
paket add CSharpEssentials.LoggerHelper --version 3.0.2
#r "nuget: CSharpEssentials.LoggerHelper, 3.0.2"
#:package CSharpEssentials.LoggerHelper@3.0.2
#addin nuget:?package=CSharpEssentials.LoggerHelper&version=3.0.2
#tool nuget:?package=CSharpEssentials.LoggerHelper&version=3.0.2
๐ฆ CSharpEssentials.LoggerHelper
๐ Known Issues in 3.0.1
โ ๏ธ Version 3.0.1 introduced an issue where Serilog.Sinks.Elasticsearch included an internal reference to Serilog.Sinks.Console, causing duplicate registration and build errors in some projects.
โ
This issue is fixed in version 3.0.2.
๐ Please update your package reference from 3.0.1 to 3.0.2 to avoid conflicts.
dotnet add package Serilog.Sinks.Elasticsearch --version 3.0.2
Introduction
CSharpEssentials.LoggerHelper is a flexible, modular structured logging HUB for .NET (6.0/8.0) applications built on Serilog.
The Hub core package acts as a central routing engineโdirecting log events to one or more sinks based on your configuration and log level.
All built-in sink implementations have been removed from the core and moved into dedicated sub-packages, so you install only the sinks you need and can extend the Hub with any number of additional sinks.
Key Benefits
- ๐ง HUB Core: minimal dependencies, central logger routing engine
- ๐ข Structured logs: includes Action, IdTransaction, ApplicationName, MachineName
- ๐ Level-based routing: assign sinks per log level (Information, Warning, Error, โฆ)
- ๐ฆ Modular sinks: each sink lives in its own NuGet package under
CSharpEssentials.LoggerHelper.Sink.* - โ Infinite extensibility: add as many sinks as you want by installing extra sub-packages
- โก๏ธ Placeholder validation: catches template mismatches at startup
- ๐ Single config file:
appsettings.LoggerHelper.json
Available Sink Packages
- Console:
CSharpEssentials.LoggerHelper.Sink.Console - File:
CSharpEssentials.LoggerHelper.Sink.File - MSSqlServer:
CSharpEssentials.LoggerHelper.Sink.MSSqlServer - PostgreSQL:
CSharpEssentials.LoggerHelper.Sink.PostgreSql - ElasticSearch:
CSharpEssentials.LoggerHelper.Sink.Elasticsearch - โฆand any custom sink you implement
๐ Basic Usage
๐ Check out how to use the package in the documentation
๐ View the usage guide here!
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. 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 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. |
-
net6.0
- Microsoft.Extensions.Configuration (>= 9.0.4)
- Microsoft.Extensions.Configuration.Binder (>= 9.0.1)
- Microsoft.Extensions.Configuration.Json (>= 9.0.1)
- Serilog (>= 4.2.0)
- Serilog.Settings.Configuration (>= 9.0.0)
- System.Diagnostics.DiagnosticSource (>= 9.0.4)
-
net8.0
- Microsoft.Extensions.Configuration (>= 9.0.4)
- Microsoft.Extensions.Configuration.Binder (>= 9.0.1)
- Microsoft.Extensions.Configuration.Json (>= 9.0.1)
- Serilog (>= 4.2.0)
- Serilog.Settings.Configuration (>= 9.0.0)
- System.Diagnostics.DiagnosticSource (>= 9.0.4)
NuGet packages (12)
Showing the top 5 NuGet packages that depend on CSharpEssentials.LoggerHelper:
| Package | Downloads |
|---|---|
|
CSharpEssentials.HttpHelper
package to help manage of httpHelper |
|
|
CSharpEssentials.LoggerHelper.Sink.Console
Package Description |
|
|
CSharpEssentials.LoggerHelper.Sink.MSSqlServer
A powerful SQL Server sink for CSharpEssentials.LoggerHelper , designed to log directly into Microsoft SQL Server with automatic table creation, custom columns, and structured context properties. |
|
|
CSharpEssentials.LoggerHelper.Sink.Elasticsearch
A high-performance Elasticsearch sink for CSharpEssentials.LoggerHelper , designed to index logs into Elasticsearch for fast search, advanced filtering, and real-time dashboards with Kibana. |
|
|
CSharpEssentials.LoggerHelper.Sink.Postgresql
Stores structured logs directly into PostgreSQL with support for custom schemas, JSON fields, and automatic table creation for deep analytics and long-term storage. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.12 | 400 | 11/19/2025 |
| 4.0.11-beta | 134 | 11/15/2025 |
| 4.0.10.1 | 202 | 10/12/2025 |
| 4.0.10 | 389 | 10/12/2025 |
| 4.0.9.1 | 124 | 10/10/2025 |
| 4.0.9 | 109 | 10/10/2025 |
| 4.0.8 | 132 | 10/10/2025 |
| 4.0.7 | 168 | 10/8/2025 |
| 4.0.6 | 174 | 10/8/2025 |
| 4.0.5 | 544 | 9/27/2025 |
| 4.0.4 | 118 | 9/27/2025 |
| 4.0.3 | 244 | 9/14/2025 |
| 4.0.2 | 561 | 9/11/2025 |
| 4.0.1.1 | 172 | 9/11/2025 |
| 4.0.1 | 191 | 9/11/2025 |
| 4.0.0 | 877 | 8/25/2025 |
| 3.1.6 | 282 | 8/5/2025 |
| 3.1.5 | 415 | 6/15/2025 |
| 3.1.4 | 457 | 6/12/2025 |
| 3.1.3 | 324 | 6/11/2025 |
| 3.1.2 | 242 | 6/9/2025 |
| 3.1.1 | 621 | 6/8/2025 |
| 3.1.0 | 232 | 6/8/2025 |
| 3.0.6 | 184 | 6/5/2025 |
| 3.0.5 | 183 | 6/5/2025 |
| 3.0.4 | 199 | 6/2/2025 |
| 3.0.3 | 175 | 6/2/2025 |
| 3.0.2 | 610 | 6/1/2025 |
| 3.0.1 | 221 | 5/30/2025 |
| 3.0.0 | 252 | 5/30/2025 |
| 2.0.9 | 106 | 5/24/2025 |
| 2.0.8 | 146 | 5/23/2025 |
| 2.0.7 | 147 | 5/23/2025 |
| 2.0.6 | 165 | 5/19/2025 |
| 2.0.5 | 264 | 5/14/2025 |
| 2.0.4 | 289 | 5/13/2025 |
| 2.0.1 | 184 | 5/11/2025 |
| 2.0.0 | 175 | 5/11/2025 |
| 1.3.1 | 180 | 5/11/2025 |
| 1.2.3 | 122 | 5/10/2025 |
| 1.2.2 | 116 | 5/10/2025 |
| 1.2.1 | 161 | 5/9/2025 |
| 1.1.6 | 197 | 5/6/2025 |
| 1.1.5 | 199 | 5/5/2025 |
| 1.1.4 | 184 | 5/4/2025 |
| 1.1.3 | 199 | 5/4/2025 |
| 1.1.2 | 188 | 5/4/2025 |
| 1.1.1 | 191 | 5/4/2025 |
| 1.0.1 | 163 | 2/19/2025 |
| 1.0.0 | 148 | 2/19/2025 |