Struct LogEntry¶
Namespace: Apogee.Core.Logging
Assembly: Apogee.Core.dll
public readonly record struct LogEntry : IEquatable<LogEntry>
Implements¶
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¶
Level¶
public LogLevel Level { get; init; }
Property Value¶
Message¶
public string Message { get; init; }
Property Value¶
Time¶
public DateTimeOffset Time { get; init; }
Property Value¶
Methods¶
ToLine()¶
The line every text sink writes: HH:mm:ss.fff LVL [Category] message, in the machine's local time.
public string ToLine()