Improve log level

This commit is contained in:
AsamK 2024-01-25 21:00:16 +01:00
parent 2974b466aa
commit 78c87e501e

View file

@ -42,7 +42,7 @@ public class LogConfigurator extends ContextAwareBase implements Configurator {
}});
final var rootLogger = lc.getLogger(Logger.ROOT_LOGGER_NAME);
final var defaultLevel = verboseLevel > 1 ? Level.ALL : verboseLevel > 0 ? Level.INFO : Level.WARN;
final var defaultLevel = verboseLevel > 2 ? Level.ALL : verboseLevel > 0 ? Level.INFO : Level.WARN;
rootLogger.setLevel(defaultLevel);
final var consoleLayout = verboseLevel == 0 || logFile != null