Skip to content

Struct LogEntry

Namespace: Apogee.Core.Logging
Assembly: Apogee.Core.dll

public readonly record struct LogEntry : IEquatable<LogEntry>

Implements

IEquatable<LogEntry>

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

LogEntry(DateTimeOffset, LogLevel, string, string)

public LogEntry(DateTimeOffset Time, LogLevel Level, string Category, string Message)

Parameters

Time DateTimeOffset

Level LogLevel

Category string

Message string

Properties

Category

public string Category { get; init; }

Property Value

string

Level

public LogLevel Level { get; init; }

Property Value

LogLevel

Message

public string Message { get; init; }

Property Value

string

Time

public DateTimeOffset Time { get; init; }

Property Value

DateTimeOffset

Methods

ToLine()

The line every text sink writes: HH:mm:ss.fff LVL [Category] message, in the machine's local time.

public string ToLine()

Returns

string