Class LogEntry
One log entry: the first line with time, level and category, and following lines such as an exception's stack trace.
Implements
Inherited Members
Namespace: Uniform.Matrix.Hosting
Assembly: Uniform.Matrix.Hosting.dll
Syntax
public sealed record LogEntry : IEquatable<LogEntry>
Properties
| Edit this page View SourceCategory
Logger category, e.g. a class name.
Declaration
public string? Category { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
Level
Level, or null when the first line is not in the log format.
Declaration
public LogLevel? Level { get; init; }
Property Value
| Type | Description |
|---|---|
| LogLevel? |
Lines
All lines of the entry.
Declaration
public required IReadOnlyList<string> Lines { get; init; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<string> |
Time
Time text as written, e.g. 2026-10-26 01:05:36.901; null for lines before the first entry.
Declaration
public string? Time { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
| Edit this page View SourceMatches(LogLevel, string?)
Return whether the entry is at least minimum and contains filter, ignoring case.
Declaration
public bool Matches(LogLevel minimum, string? filter)
Parameters
| Type | Name | Description |
|---|---|---|
| LogLevel | minimum | |
| string | filter |
Returns
| Type | Description |
|---|---|
| bool |