Table of Contents

Class LogPattern

Namespace
Valheim.Testing.Game
Assembly
Valheim.Testing.Game.dll

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
object
LogPattern

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

Name string
Severity LogSeverity
Line Regex
Frame Regex
Phase LogPhase

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

LogPhase

Severity

public LogSeverity Severity { get; init; }

Property Value

LogSeverity