This site provides a machine-readable index at /llms.txt.

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 Pennington.Diagnostics.DiagnosticSeverity
Severity of the diagnostic.
Source string?
Default: null
Optional identifier for the component that raised the diagnostic.

Constructors

.ctor

#
public sealed record 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)
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 sealed record Diagnostic(DiagnosticSeverity Severity, string Message, string? Source = null);
/// Human-readable description of the problem.
string Message
; /// Severity of the diagnostic.
DiagnosticSeverity Severity
; /// Optional identifier for the component that raised the diagnostic.
string? Source = null
; }