Seal + Docs

This commit is contained in:
Mira 2023-06-08 03:27:52 +02:00
parent 332b6172ae
commit 7c1ff06fa5
Signed by untrusted user who does not match committer: Xorog
GPG key ID: 983798ED9C3E7C36
3 changed files with 47 additions and 22 deletions

View file

@ -2,11 +2,32 @@
public class LogEntry
{
internal LogEntry() { }
internal string RawMessage { get; set; }
public DateTime TimeOfEvent { get; set; }
public CustomLogLevel LogLevel { get; set; }
public string Message { get; set; }
public object[] Args { get; set; }
public Exception? Exception { get; set; }
/// <summary>
/// The time of the event.
/// </summary>
public DateTime TimeOfEvent { get; internal set; }
/// <summary>
/// The severity of the event.
/// </summary>
public CustomLogLevel LogLevel { get; internal set; }
/// <summary>
/// The message describing the event.
/// </summary>
public string Message { get; internal set; }
/// <summary>
/// Any objects involved in creating the event message.
/// </summary>
public object[] Args { get; internal set; } = Array.Empty<object>();
/// <summary>
/// The exception that's been caused.
/// </summary>
public Exception? Exception { get; internal set; }
}