From 7c1ff06fa50e10f3c42f7e0cc42ca0769cf29172 Mon Sep 17 00:00:00 2001
From: Mira <56395159+TheXorog@users.noreply.github.com>
Date: Thu, 8 Jun 2023 03:27:52 +0200
Subject: [PATCH] Seal + Docs
---
Entities/LogEntry.cs | 31 ++++++++++++++++++++++++++-----
LoggerClient.cs | 36 ++++++++++++++++++++----------------
LoggerProvider.cs | 2 +-
3 files changed, 47 insertions(+), 22 deletions(-)
diff --git a/Entities/LogEntry.cs b/Entities/LogEntry.cs
index 216ca0e..081bae6 100644
--- a/Entities/LogEntry.cs
+++ b/Entities/LogEntry.cs
@@ -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; }
+ ///
+ /// The time of the event.
+ ///
+ public DateTime TimeOfEvent { get; internal set; }
+
+ ///
+ /// The severity of the event.
+ ///
+ public CustomLogLevel LogLevel { get; internal set; }
+
+ ///
+ /// The message describing the event.
+ ///
+ public string Message { get; internal set; }
+
+ ///
+ /// Any objects involved in creating the event message.
+ ///
+ public object[] Args { get; internal set; } = Array.Empty