mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Add logging bridge for java.util.logging
This commit is contained in:
parent
c60c8e998f
commit
b5eef3ccad
2 changed files with 5 additions and 0 deletions
|
@ -29,6 +29,7 @@ import org.asamk.signal.commands.exceptions.UserErrorException;
|
|||
import org.asamk.signal.manager.Manager;
|
||||
import org.asamk.signal.util.SecurityProvider;
|
||||
import org.bouncycastle.jce.provider.BouncyCastleProvider;
|
||||
import org.slf4j.bridge.SLF4JBridgeHandler;
|
||||
|
||||
import java.security.Security;
|
||||
|
||||
|
@ -97,6 +98,9 @@ public class Main {
|
|||
System.setProperty("org.slf4j.simpleLogger.showShortLogName", "true");
|
||||
System.setProperty("org.slf4j.simpleLogger.showDateTime", "false");
|
||||
}
|
||||
SLF4JBridgeHandler.removeHandlersForRootLogger();
|
||||
SLF4JBridgeHandler.install();
|
||||
// java.util.logging.Logger.getLogger("").setLevel(java.util.logging.Level.FINEST);
|
||||
}
|
||||
|
||||
private static int getStatusForError(final CommandException e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue