mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 10:30:38 +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
|
@ -37,6 +37,7 @@ dependencies {
|
|||
implementation("net.sourceforge.argparse4j:argparse4j:0.9.0")
|
||||
implementation("com.github.hypfvieh:dbus-java:3.3.1")
|
||||
implementation("org.slf4j:slf4j-simple:1.7.32")
|
||||
implementation("org.slf4j", "jul-to-slf4j", "1.7.32")
|
||||
implementation(project(":lib"))
|
||||
}
|
||||
|
||||
|
|
|
@ -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