Write log level in log

This commit is contained in:
VictoriousRaptor 2025-03-11 23:53:33 +08:00
parent e870dd27eb
commit 44a90e53a9

View file

@ -66,11 +66,13 @@ namespace Flow.Launcher.Infrastructure.Logger
public static void UseDebugLogLevel()
{
LogManager.Configuration.FindRuleByName("file").SetLoggingLevels(LogLevel.Debug, LogLevel.Fatal);
Info(nameof(Logger), "Using DEBUG log level.");
}
public static void UseInfoLogLevel()
{
LogManager.Configuration.FindRuleByName("file").SetLoggingLevels(LogLevel.Info, LogLevel.Fatal);
Info(nameof(Logger), "Using INFO log level.");
}
private static void LogFaultyFormat(string message)