CSharpEssentials.LoggerHelper
4.0.9.1
See the version list below for details.
dotnet add package CSharpEssentials.LoggerHelper --version 4.0.9.1
NuGet\Install-Package CSharpEssentials.LoggerHelper -Version 4.0.9.1
<PackageReference Include="CSharpEssentials.LoggerHelper" Version="4.0.9.1" />
<PackageVersion Include="CSharpEssentials.LoggerHelper" Version="4.0.9.1" />
<PackageReference Include="CSharpEssentials.LoggerHelper" />
paket add CSharpEssentials.LoggerHelper --version 4.0.9.1
#r "nuget: CSharpEssentials.LoggerHelper, 4.0.9.1"
#:package CSharpEssentials.LoggerHelper@4.0.9.1
#addin nuget:?package=CSharpEssentials.LoggerHelper&version=4.0.9.1
#tool nuget:?package=CSharpEssentials.LoggerHelper&version=4.0.9.1
π¦ CSharpEssentials.LoggerHelper
The ultimate Serilog sink hub β extensible, modular, centralized.
π Major Update: AI Integration for Advanced Observability!
We are excited to announce a significant enhancement to the CSharpEssentials ecosystem with the introduction of the new AI package:
β¨ New Package: CSharpEssentials.LoggerHelper.AI
This add-on package integrates Large Language Models (LLMs) and Retrieval-Augmented Generation (RAG) directly into your logging and tracing workflow. It enables powerful, AI-driven diagnostic actions, including:
- RAG Querying: Ask natural language questions against your logs via dynamic SQL (MS SQL/PostgreSQL).
- Correlate Trace: Pinpoint the root cause of failures and timeouts in distributed traces.
- Detect Anomaly: Identify statistical anomalies in metrics.
- Summarize Incident: Get concise, AI-generated root cause summaries.
π Dashboard Package Updated
The companion package, CSharpEssentials.LoggerHelper.Dashboard, has been fully updated to seamlessly support all new AI capabilities. You can now configure and execute all the new LLM variants (RAG, Anomaly Detection, etc.) dynamically through a user-friendly interface.
π‘ Why CSharpEssentials.LoggerHelper?
CSharpEssentials.LoggerHelper is not just another logging library β itβs a smart hub for Serilog sinks.
Thanks to its modular architecture, you can plug in only the sinks you need.
Key strengths include:
Centralized & flexible configuration β Choose which sinks receive which log levels using
appsettings.LoggerHelper.json. For example, send onlyErrormessages to Email while routing all logs to ElasticSearch. No code changes required.*- Unified observability & dashboard β The
Sink.Telemetrypackage integrates logs, metrics and traces via OpenTelemetry. Each log entry carries atrace_idso you can correlate distributed requests. An interactive dashboard lets you visualize traces, sink errors and telemetry, and configure alerts.Structured properties & enrichment β Standard fields like
IdTransaction,ApplicationName,MachineNameandActionare included by default. You can add custom properties (e.g., username, IP) with enricher functions, and they'll appear across all sinks.Modular architecture & error inspection β Each sink (Console, File, MSSQL, PostgreSQL, ElasticSearch, Email, Telegram, xUnit, Telemetry) is a separate NuGet package. Install only what you need; the core loads them dynamically. It also exposes
CurrentErrorand an in-memoryErrorsqueue to help debug initialization failures.
π§ Error Insight Built-In:
When something goes wrong, you can inspect:
CurrentError: the last exception messageErrors: the complete in-memory queue of failures
Perfect for debugging deployment or configuration issues.
π Whatβs New in 3.1.5?
β¨ Added Sink: xUnit
When running tests in environments like DevOps pipelines, DBs and external endpoints may not always be accessible.
No worries β with the xUnit sink, you get a full trace of failed tests directly inside your test output.
Just install the package and define your desired levels (Information, Warning, Error, etc.).
Perfect for debugging flaky tests or disconnected environments.
π 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 - Telegram:
CSharpEssentials.LoggerHelper.Sink.TelegramUsed viaHttpClient - Email:
CSharpEssentials.LoggerHelper.Sink.EmailUsed viaSystem.Net.Mail - xUnit:
CSharpEssentials.LoggerHelper.Sink.xUnitβ ( new from 3.1.5 ) - "Telemetry":
CSharpEssentials.LoggerHelper.Sink.Telemetrycollects logs, metrics and traces using OpenTelemetry. - "DashBoard":
CSharpEssentials.LoggerHelper.Dashboardgiving you real-time visibility into how sinks are loaded and use AI. - "AI":
CSharpEssentials.LoggerHelper.AIAI-Powered Observability & Root Cause Analysis.
π 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 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 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.1)
- 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.1)
- 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)
-
net9.0
- Microsoft.Extensions.Configuration (>= 9.0.1)
- 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.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.Console
Package Description |
|
|
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.10.1 | 182 | 10/12/2025 |
| 4.0.10 | 311 | 10/12/2025 |
| 4.0.9.1 | 112 | 10/10/2025 |
| 4.0.9 | 97 | 10/10/2025 |
| 4.0.8 | 123 | 10/10/2025 |
| 4.0.7 | 161 | 10/8/2025 |
| 4.0.6 | 164 | 10/8/2025 |
| 4.0.5 | 402 | 9/27/2025 |
| 4.0.4 | 98 | 9/27/2025 |
| 4.0.3 | 238 | 9/14/2025 |
| 4.0.2 | 516 | 9/11/2025 |
| 4.0.1.1 | 165 | 9/11/2025 |
| 4.0.1 | 183 | 9/11/2025 |
| 4.0.0 | 837 | 8/25/2025 |
| 3.1.6 | 272 | 8/5/2025 |
| 3.1.5 | 409 | 6/15/2025 |
| 3.1.4 | 443 | 6/12/2025 |
| 3.1.3 | 315 | 6/11/2025 |
| 3.1.2 | 235 | 6/9/2025 |
| 3.1.1 | 606 | 6/8/2025 |
| 3.1.0 | 223 | 6/8/2025 |
| 3.0.6 | 177 | 6/5/2025 |
| 3.0.5 | 176 | 6/5/2025 |
| 3.0.4 | 180 | 6/2/2025 |
| 3.0.3 | 170 | 6/2/2025 |
| 3.0.2 | 579 | 6/1/2025 |
| 3.0.1 | 215 | 5/30/2025 |
| 3.0.0 | 248 | 5/30/2025 |
| 2.0.9 | 103 | 5/24/2025 |
| 2.0.8 | 140 | 5/23/2025 |
| 2.0.7 | 141 | 5/23/2025 |
| 2.0.6 | 161 | 5/19/2025 |
| 2.0.5 | 257 | 5/14/2025 |
| 2.0.4 | 286 | 5/13/2025 |
| 2.0.1 | 182 | 5/11/2025 |
| 2.0.0 | 167 | 5/11/2025 |
| 1.3.1 | 166 | 5/11/2025 |
| 1.2.3 | 117 | 5/10/2025 |
| 1.2.2 | 108 | 5/10/2025 |
| 1.2.1 | 154 | 5/9/2025 |
| 1.1.6 | 180 | 5/6/2025 |
| 1.1.5 | 196 | 5/5/2025 |
| 1.1.4 | 179 | 5/4/2025 |
| 1.1.3 | 191 | 5/4/2025 |
| 1.1.2 | 184 | 5/4/2025 |
| 1.1.1 | 186 | 5/4/2025 |
| 1.0.1 | 149 | 2/19/2025 |
| 1.0.0 | 143 | 2/19/2025 |