Updated (added more header options)

This commit is contained in:
2026-01-30 20:40:41 +01:00
parent f18456e263
commit 04a807df4f
9 changed files with 512 additions and 390 deletions

View File

@@ -37,7 +37,17 @@ public class Logger
UseLocalTime = UseLocalTime,
},
};
LoggerSettings.CustomHeaderFormatter = ctx =>
{
if (ctx.LogType == ELogType.Error)
{
return $"{ctx.Timestamp:HH:mm:ss} [{ctx.LogType}]";
}
return $"{ctx.Timestamp:HH:mm:ss} [{ctx.LogType}]";
};
_logManager = new LogManager(LoggerSettings);
_logManager.Settings.TypesToLog.Clear();
_logManager.Settings.LogInfo();