fix: No longer the need to rely on string interpolation
This commit is contained in:
parent
cc976c86a1
commit
c21f2dae76
4 changed files with 401 additions and 149 deletions
|
|
@ -2,8 +2,11 @@
|
|||
|
||||
public class LogEntry
|
||||
{
|
||||
internal string RawMessage { get; set; }
|
||||
|
||||
public DateTime TimeOfEvent { get; set; }
|
||||
public LogLevel LogLevel { get; set; }
|
||||
public string Message { get; set; }
|
||||
public object[] Args { get; set; }
|
||||
public Exception? Exception { get; set; }
|
||||
}
|
||||
13
Entities/StringPart.cs
Normal file
13
Entities/StringPart.cs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
namespace Xorog.Logger.Entities;
|
||||
|
||||
internal class StringPart : IDisposable
|
||||
{
|
||||
internal string String { get; set; }
|
||||
internal ConsoleColor? Color { get; set; }
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
String = "";
|
||||
Color = null;
|
||||
}
|
||||
}
|
||||
Reference in a new issue