Class LogPattern
A known log problem. Line matches one line; with Frame, the line counts only when a line of its stack trace (up to a blank line, the next log message or the next exception) matches the frame. A Startup pattern also ends an owned startup at once (RuntimeLoadFailures); startup matching reads its Line only, so a startup pattern has no Frame.
public sealed record LogPattern
- Inheritance
-
objectLogPattern
Constructors
LogPattern(string, LogSeverity, Regex, Regex?, LogPhase)
A known log problem. Line matches one line; with Frame, the line counts only when a line of its stack trace (up to a blank line, the next log message or the next exception) matches the frame. A Startup pattern also ends an owned startup at once (RuntimeLoadFailures); startup matching reads its Line only, so a startup pattern has no Frame.
public LogPattern(string Name, LogSeverity Severity, Regex Line, Regex? Frame = null, LogPhase Phase = LogPhase.Teardown)
Parameters
NamestringSeverityLogSeverityLineRegexFrameRegexPhaseLogPhase
Properties
Frame
public Regex? Frame { get; init; }
Property Value
- Regex
Line
public Regex Line { get; init; }
Property Value
- Regex
Name
public string Name { get; init; }
Property Value
- string
Phase
public LogPhase Phase { get; init; }
Property Value
Severity
public LogSeverity Severity { get; init; }