mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 02:20:39 +00:00
Update dependencies
This commit is contained in:
parent
e5251ae158
commit
3533500b73
3 changed files with 26 additions and 9 deletions
|
@ -42,7 +42,7 @@ public class LogConfigurator extends ContextAwareBase implements Configurator {
|
|||
}});
|
||||
final var rootLogger = lc.getLogger(Logger.ROOT_LOGGER_NAME);
|
||||
|
||||
final var defaultLevel = verboseLevel > 2 ? Level.ALL : verboseLevel > 0 ? Level.INFO : Level.WARN;
|
||||
final var defaultLevel = verboseLevel > 2 ? Level.TRACE : verboseLevel > 0 ? Level.INFO : Level.WARN;
|
||||
rootLogger.setLevel(defaultLevel);
|
||||
|
||||
final var consoleLayout = verboseLevel == 0 || logFile != null
|
||||
|
@ -51,13 +51,14 @@ public class LogConfigurator extends ContextAwareBase implements Configurator {
|
|||
final var consoleAppender = createLoggingConsoleAppender(lc, createLayoutWrappingEncoder(consoleLayout));
|
||||
rootLogger.addAppender(consoleAppender);
|
||||
|
||||
lc.getLogger("org.asamk").setLevel(verboseLevel > 1 ? Level.ALL : verboseLevel > 0 ? Level.DEBUG : Level.INFO);
|
||||
lc.getLogger("org.asamk")
|
||||
.setLevel(verboseLevel > 1 ? Level.TRACE : verboseLevel > 0 ? Level.DEBUG : Level.INFO);
|
||||
lc.getLogger("org.asamk.Signal")
|
||||
.setLevel(verboseLevel > 2 ? Level.ALL : verboseLevel > 1 ? Level.INFO : Level.WARN);
|
||||
.setLevel(verboseLevel > 2 ? Level.TRACE : verboseLevel > 1 ? Level.INFO : Level.WARN);
|
||||
lc.getLogger("com.zaxxer.hikari.pool.PoolBase")
|
||||
.setLevel(verboseLevel > 2 ? Level.ALL : verboseLevel > 1 ? Level.INFO : Level.WARN);
|
||||
.setLevel(verboseLevel > 2 ? Level.TRACE : verboseLevel > 1 ? Level.INFO : Level.WARN);
|
||||
lc.getLogger("org.sqlite.core.NativeDB")
|
||||
.setLevel(verboseLevel > 3 ? Level.ALL : verboseLevel > 1 ? Level.INFO : Level.WARN);
|
||||
.setLevel(verboseLevel > 3 ? Level.TRACE : verboseLevel > 1 ? Level.INFO : Level.WARN);
|
||||
|
||||
if (logFile != null) {
|
||||
consoleAppender.addFilter(new Filter<>() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue