Skip to main content

LogEntry class

Namespace: Arlecchino.Diagnostics · Assembly: Arlecchino

One line of log, kept for the overlay.

public sealed class LogEntry : IEquatable<LogEntry>

Implements IEquatable<T><LogEntry>

Constructors

MemberSummary
LogEntry(DateTimeOffset, LogLevel, string, string)One line of log, kept for the overlay.

Properties

MemberSummary
CategoryWhere it came from, already shortened to the last part of the name.
LevelHow bad it is.
MessageWhat was logged, exception message included.
TimeWhen it was written.

Methods

MemberSummary
Deconstruct(out DateTimeOffset, out LogLevel, out string, out string)

Constructors in detail

LogEntry(DateTimeOffset, LogLevel, string, string)

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

One line of log, kept for the overlay.

Parameters

NameTypeDescription
TimeDateTimeOffsetWhen it was written.
LevelLogLevelHow bad it is.
CategorystringWhere it came from, already shortened to the last part of the name.
MessagestringWhat was logged, exception message included.

Properties in detail

Category

public string Category { get; init; }

Where it came from, already shortened to the last part of the name.

Type string

Level

public LogLevel Level { get; init; }

How bad it is.

Type LogLevel

Message

public string Message { get; init; }

What was logged, exception message included.

Type string

Time

public DateTimeOffset Time { get; init; }

When it was written.

Type DateTimeOffset

Methods in detail

Deconstruct(out DateTimeOffset, out LogLevel, out string, out string)

public void Deconstruct(
out DateTimeOffset Time,
out LogLevel Level,
out string Category,
out string Message);

Parameters

NameTypeDescription
TimeDateTimeOffset
LevelLogLevel
Categorystring
Messagestring