This documentation is also published as Markdown for efficient machine reading: the whole site is indexed at /llms.txt, and every page has a clean Markdown copy under /_llms/. These are generated from the same source and cost far fewer tokens to read than this rendered HTML.

Skip to main content Skip to navigation

Diagnostic Pennington.Diagnostics

A diagnostic produced during HTTP request handling. Route-agnostic — the route is known by the request context, not the diagnostic.

Properties

Message string
Human-readable description of the problem.
Severity DiagnosticSeverity
Severity of the diagnostic.
Source string
Optional identifier for the component that raised the diagnostic.

Constructors

Diagnostic

#
public Diagnostic(DiagnosticSeverity Severity, string Message, string Source = null)

A diagnostic produced during HTTP request handling. Route-agnostic — the route is known by the request context, not the diagnostic.

Parameters

Severity DiagnosticSeverity
Severity of the diagnostic.
Message string
Human-readable description of the problem.
Source string
Optional identifier for the component that raised the diagnostic.

Pennington.Diagnostics.Diagnostic

namespace Pennington.Diagnostics;

/// A diagnostic produced during HTTP request handling. Route-agnostic — the route is known by the request context, not the diagnostic.
public record Diagnostic
{
    /// A diagnostic produced during HTTP request handling. Route-agnostic — the route is known by the request context, not the diagnostic.
    
public Diagnostic(DiagnosticSeverity Severity, string Message, string Source = null)
; /// Human-readable description of the problem.
public string Message { get; set; }
/// Severity of the diagnostic.
public DiagnosticSeverity Severity { get; set; }
/// Optional identifier for the component that raised the diagnostic.
public string Source { get; set; }
}