CSharpEssentials.LoggerHelper.AI 4.0.7

dotnet add package CSharpEssentials.LoggerHelper.AI --version 4.0.7
                    
NuGet\Install-Package CSharpEssentials.LoggerHelper.AI -Version 4.0.7
                    
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.AI" Version="4.0.7" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CSharpEssentials.LoggerHelper.AI" Version="4.0.7" />
                    
Directory.Packages.props
<PackageReference Include="CSharpEssentials.LoggerHelper.AI" />
                    
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.AI --version 4.0.7
                    
#r "nuget: CSharpEssentials.LoggerHelper.AI, 4.0.7"
                    
#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.
#:package CSharpEssentials.LoggerHelper.AI@4.0.7
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CSharpEssentials.LoggerHelper.AI&version=4.0.7
                    
Install as a Cake Addin
#tool nuget:?package=CSharpEssentials.LoggerHelper.AI&version=4.0.7
                    
Install as a Cake Tool

CSharpEssentials.LoggerHelper.AI: AI-Powered Observability & Root Cause Analysis

🚀 Stop Sifting, Start Solving.

Are you tired of manually sifting through mountains of logs and scattered traces? CSharpEssentials.LoggerHelper.AI is an advanced toolkit that integrates Large Language Models (LLMs) and Retrieval-Augmented Generation (RAG) directly into your C# logging pipeline. It transforms raw operational data into actionable, real-time insights, dramatically reducing Mean Time To Resolution (MTTR).

Key AI Actions (Four Modes)

This powerful package offers specialized macro actions designed to handle complex observability challenges:

  1. 🕵️ CorrelateTrace: Automatically analyze distributed traces to pinpoint the most suspicious span or root cause of timeouts and complex failures in microservice architectures.
  2. ❓ RagAnswerQuery: Use RAG over your database logs/metrics (via dynamic SQL queries) to get precise answers to natural language questions instantly.
  3. 🚨 DetectAnomaly: Analyze time-series metrics (e.g., latency, error rates) to detect statistical anomalies (Z-score analysis) and provide an AI-driven explanation of the root cause and mitigation steps.
  4. 📚 SummarizeIncident: Generate concise summaries of an entire incident, detailing the root cause, impact, and remediation based on a full chronological timeline of associated logs.

Hybrid Contextual Data Sourcing (Unique Feature)

The package securely enriches LLM prompts by dynamically executing pre-saved SQL queries (.sql files) against your existing database, supporting both MS SQL and PostgreSQL. This flexibility allows you to seamlessly bridge the gap between your operational data and advanced AI analysis.


Get Started

Resource Description
Documentation View the detailed setup guide and technical deep-dive here: doc.md
Web Demo Test the API endpoints and core functionality immediately using the web demo project: CSharp.Essentials.Extensions
LLM Dashboard Manage and test all four LLM modes dynamically with a user-friendly UI using the companion package: CSharpEssentials.LoggerHelper.Dashboard

Start transforming your observability with AI today!

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

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.7 121 10/4/2025
4.0.5 163 9/27/2025

Stop manually sifting through logs. CSharpEssentials.LoggerHelper.AI integrates advanced LLMs and RAG directly into your C# observability pipeline to provide real-time, actionable insights.

It performs AI-powered Root Cause Analysis (CorrelateTrace), Anomaly Detection, and RAG over your MS SQL/PostgreSQL logs via dynamic SQL queries. Dramatically reduce MTTR and transform your diagnostic process with AI.