Class LogClassification
A run's own classification of a known pattern, with the written reason it differs from the default: another severity, named lines the run expects, or both. Under a name that is not built in, it is a pattern of the run's own: its Line (and optional Frame) regex and its Severity, for a mod's own known-bad line or another mod's known noise, counted like the built-in patterns at teardown.
public sealed class LogClassification
- Inheritance
-
objectLogClassification
Properties
Expected
Texts that name lines this run expects, such as a lookup a mod makes on purpose: a line of the pattern containing one of them (ordinal) is counted as Expected and never fails the scan. For UnknownError, each text must be the entire BepInEx Error or Fatal header line and is matched exactly. Every other line of the pattern still counts.
public List<string> Expected { get; set; }
Property Value
- List<string>
Frame
For a pattern of the run's own: a regex one of the matching line's stack frames must match, as Frame.
public string? Frame { get; set; }
Property Value
- string
Line
For a pattern of the run's own (a name that is not built in): the regex a line must match (.NET syntax, culture-invariant, ordinal). A built-in pattern's regex cannot be replaced.
public string? Line { get; set; }
Property Value
- string
Reason
public string Reason { get; set; }
Property Value
- string
Severity
Failure or Warning; absent keeps the pattern's default.
public LogSeverity? Severity { get; set; }