CSharpEssentials.LoggerHelper is a modular, centralized hub for Serilog sinks that delivers comprehensive observability . Its flexible JSON‑based configuration lets you decide which log levels go to which sink—for example, routing only Error messages to email while sending all logs to ElasticSearch—without touching your code . The package unifies logs, metrics and traces via OpenTelemetry; every log entry carries a trace_id to correlate distributed requests, and an interactive dashboard lets you visualize traces, sink failures and telemetry, and configure alerts . Standard structured fields (e.g., IdTransaction, ApplicationName, MachineName, Action) are included by default, and you can enrich logs with custom properties that propagate across all sinks . Each sink—Console, File, MSSQL, PostgreSQL, ElasticSearch, Email, Telegram, xUnit, Telemetry, Dashboard and AI—is delivered as a separate NuGet package, so you install only what you need; the core loads them dynamically and exposes CurrentError and an in‑memory Errors queue to simplify debugging . The latest AI integration enables natural‑language queries against logs, trace correlation for root‑cause analysis, anomaly detection and automatic incident summaries , while the new xUnit sink captures full traces of failed tests directly in your test output—ideal for debugging flaky tests or disconnected environments
$ dotnet add package CSharpEssentials.LoggerHelperCSharpEssentials.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 of additional sinks.
CSharpEssentials.LoggerHelper.Sink.*appsettings.LoggerHelper.jsonCSharpEssentials.LoggerHelper.Sink.ConsoleCSharpEssentials.LoggerHelper.Sink.FileCSharpEssentials.LoggerHelper.Sink.MSSqlServerCSharpEssentials.LoggerHelper.Sink.PostgreSqlCSharpEssentials.LoggerHelper.Sink.Elasticsearch👉 Check out how to use the package in the documentation
📖 View the usage guide here!