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.
SeverityDiagnosticSeverity- Severity of the diagnostic.
Sourcestring- 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
SeverityDiagnosticSeverity- Severity of the diagnostic.
Messagestring- Human-readable description of the problem.
Sourcestring- 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; }
}