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
| Member | Summary |
|---|---|
LogEntry(DateTimeOffset, LogLevel, string, string) | One line of log, kept for the overlay. |
Properties
| Member | Summary |
|---|---|
Category | Where it came from, already shortened to the last part of the name. |
Level | How bad it is. |
Message | What was logged, exception message included. |
Time | When it was written. |
Methods
| Member | Summary |
|---|---|
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
| Name | Type | Description |
|---|---|---|
Time | DateTimeOffset | When it was written. |
Level | LogLevel | How bad it is. |
Category | string | Where it came from, already shortened to the last part of the name. |
Message | string | What 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
| Name | Type | Description |
|---|---|---|
Time | DateTimeOffset | |
Level | LogLevel | |
Category | string | |
Message | string |