Improving logging
This commit is contained in:
@@ -52,6 +52,12 @@ public class HttpMxisd {
|
|||||||
// I/O
|
// I/O
|
||||||
private Undertow httpSrv;
|
private Undertow httpSrv;
|
||||||
|
|
||||||
|
static {
|
||||||
|
// Used in XNIO package, dependency of Undertow
|
||||||
|
// We switch to slf4j
|
||||||
|
System.setProperty("org.jboss.logging.provider", "slf4j");
|
||||||
|
}
|
||||||
|
|
||||||
public HttpMxisd(MxisdConfig cfg) {
|
public HttpMxisd(MxisdConfig cfg) {
|
||||||
m = new Mxisd(cfg);
|
m = new Mxisd(cfg);
|
||||||
}
|
}
|
||||||
|
|||||||
2
src/main/resources/simplelogger.properties
Normal file
2
src/main/resources/simplelogger.properties
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
org.slf4j.simpleLogger.logFile=System.out
|
||||||
|
org.slf4j.simpleLogger.log.org.xnio=warn
|
||||||
Reference in New Issue
Block a user