Diagnostic Pennington.Diagnostics
A diagnostic produced during HTTP request handling. Route-agnostic — the route is known by the request context, not the diagnostic.
Properties
Messagestring- Human-readable description of the problem.
SeverityPennington.Diagnostics.DiagnosticSeverity- Severity of the diagnostic.
Sourcestring?- Default:
nullOptional 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
SeverityDiagnosticSeverity- Severity of the diagnostic.
Messagestring- Human-readable description of the problem.
Sourcestring? (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
;
}