mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-11-02 20:36:44 +00:00
actually quieten logs by redirecting jul logging to slf4j
This commit is contained in:
parent
34080ae8b3
commit
b9caff352b
4 changed files with 8 additions and 0 deletions
|
@ -71,6 +71,9 @@ dependencies {
|
||||||
}
|
}
|
||||||
implementation('dev.bwt:bwt-jni:0.1.7')
|
implementation('dev.bwt:bwt-jni:0.1.7')
|
||||||
implementation('net.sourceforge.javacsv:javacsv:2.0')
|
implementation('net.sourceforge.javacsv:javacsv:2.0')
|
||||||
|
implementation('org.slf4j:jul-to-slf4j:1.7.30') {
|
||||||
|
exclude group: 'org.slf4j'
|
||||||
|
}
|
||||||
testImplementation('junit:junit:4.12')
|
testImplementation('junit:junit:4.12')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -21,6 +21,7 @@ import javafx.stage.Stage;
|
||||||
import org.controlsfx.glyphfont.GlyphFontRegistry;
|
import org.controlsfx.glyphfont.GlyphFontRegistry;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
import org.slf4j.bridge.SLF4JBridgeHandler;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
@ -156,6 +157,8 @@ public class MainApp extends Application {
|
||||||
getLogger().info("Using " + Network.get() + " configuration");
|
getLogger().info("Using " + Network.get() + " configuration");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SLF4JBridgeHandler.removeHandlersForRootLogger();
|
||||||
|
SLF4JBridgeHandler.install();
|
||||||
com.sun.javafx.application.LauncherImpl.launchApplication(MainApp.class, MainAppPreloader.class, argv);
|
com.sun.javafx.application.LauncherImpl.launchApplication(MainApp.class, MainAppPreloader.class, argv);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -28,4 +28,5 @@ open module com.sparrowwallet.sparrow {
|
||||||
requires bwt.jni;
|
requires bwt.jni;
|
||||||
requires jtorctl;
|
requires jtorctl;
|
||||||
requires javacsv;
|
requires javacsv;
|
||||||
|
requires jul.to.slf4j;
|
||||||
}
|
}
|
|
@ -1,5 +1,6 @@
|
||||||
<configuration>
|
<configuration>
|
||||||
<statusListener class="ch.qos.logback.core.status.NopStatusListener" />
|
<statusListener class="ch.qos.logback.core.status.NopStatusListener" />
|
||||||
|
<contextListener class="ch.qos.logback.classic.jul.LevelChangePropagator"/>
|
||||||
|
|
||||||
<logger name="com.github.sarxos.webcam.Webcam" level="OFF"/>
|
<logger name="com.github.sarxos.webcam.Webcam" level="OFF"/>
|
||||||
<logger name="com.github.sarxos.webcam.ds.cgt.WebcamOpenTask" level="OFF"/>
|
<logger name="com.github.sarxos.webcam.ds.cgt.WebcamOpenTask" level="OFF"/>
|
||||||
|
|
Loading…
Reference in a new issue