CSharpEssentials.LoggerHelper 3.0.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package CSharpEssentials.LoggerHelper --version 3.0.3
                    
NuGet\Install-Package CSharpEssentials.LoggerHelper -Version 3.0.3
                    
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="CSharpEssentials.LoggerHelper" Version="3.0.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CSharpEssentials.LoggerHelper" Version="3.0.3" />
                    
Directory.Packages.props
<PackageReference Include="CSharpEssentials.LoggerHelper" />
                    
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 CSharpEssentials.LoggerHelper --version 3.0.3
                    
#r "nuget: CSharpEssentials.LoggerHelper, 3.0.3"
                    
#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.
#addin nuget:?package=CSharpEssentials.LoggerHelper&version=3.0.3
                    
Install CSharpEssentials.LoggerHelper as a Cake Addin
#tool nuget:?package=CSharpEssentials.LoggerHelper&version=3.0.3
                    
Install CSharpEssentials.LoggerHelper as a Cake Tool

Frameworks CodeQL NuGet Downloads Last Commit

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

NuGet packages (8)

Showing the top 5 NuGet packages that depend on CSharpEssentials.LoggerHelper:

Package Downloads
CSharpEssentials.LoggerHelper.Sink.Postgresql

Package Description

CSharpEssentials.LoggerHelper.Sink.File

Sink File for package LoggerHelper

CSharpEssentials.LoggerHelper.Sink.Elasticsearch

Sink ElasticSearch for CSharpEssentials.LoggerHelper

CSharpEssentials.LoggerHelper.Sink.MSSqlServer

Package Description

CSharpEssentials.LoggerHelper.Sink.Console

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.1.5 185 6 days ago
3.1.4 337 8 days ago
3.1.3 273 10 days ago
3.1.2 196 12 days ago
3.1.1 394 12 days ago
3.1.0 176 12 days ago
3.0.6 137 16 days ago
3.0.5 130 16 days ago
3.0.4 127 18 days ago
3.0.3 129 18 days ago
3.0.2 335 20 days ago
3.0.1 133 21 days ago
3.0.0 143 21 days ago
2.0.9 62 a month ago
2.0.8 97 a month ago
2.0.7 98 a month ago
2.0.6 129 a month ago
2.0.5 214 a month ago
2.0.4 239 a month ago
2.0.1 121 a month ago
2.0.0 122 a month ago
1.3.1 124 a month ago
1.2.3 71 a month ago
1.2.2 59 a month ago
1.2.1 105 a month ago
1.1.6 134 a month ago
1.1.5 154 2 months ago
1.1.4 139 2 months ago
1.1.3 142 2 months ago
1.1.2 141 2 months ago
1.1.1 133 2 months ago
1.0.1 109 4 months ago
1.0.0 95 4 months ago