Made log level tags right-aligned

This commit is contained in:
Toastie 2024-12-27 01:35:11 +13:00
parent 769643a292
commit 2db90a44c7
Signed by: toastie_t0ast
GPG key ID: 27F3B6855AFD40A4

View file

@ -85,11 +85,11 @@ public class Logger : ILogger
{
LogLevel.Trace => ["[", "Trace", "] "],
LogLevel.Debug => ["[", "Debug", "] "],
LogLevel.Information => ["[", "Info", "] "],
LogLevel.Warning => ["[", "Warn", "] "],
LogLevel.Information => [" [", "Info", "] "],
LogLevel.Warning => [" [", "Warn", "] "],
LogLevel.Error => ["[", "Error", "] "],
LogLevel.Critical => ["[", "\u001b[1mCrit\u001b[0m", "] "],
_ => ["[", "None", "] "],
LogLevel.Critical => [" [", "\u001b[1mCrit\u001b[0m", "] "],
_ => [" [", "None", "] "],
};
lock (@lock)