Fix console logging (#5206)

Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
pull/5207/head
Simon Dudley 2 years ago committed by GitHub
parent 958813e29b
commit 6c033c93b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      besu/src/main/java/org/hyperledger/besu/Besu.java

@ -62,15 +62,7 @@ public final class Besu {
}
private static Logger setupLogging() {
try {
// This call is to test if log4j classes are available
((Log4J2LoggerFactory) Log4J2LoggerFactory.INSTANCE).newInstance("");
InternalLoggerFactory.setDefaultFactory(Log4J2LoggerFactory.INSTANCE);
} catch (Throwable t) {
System.out.printf(
"Could not set netty log4j logger factory: %s - %s%n",
t.getClass().getSimpleName(), t.getMessage());
}
InternalLoggerFactory.setDefaultFactory(Log4J2LoggerFactory.INSTANCE);
try {
System.setProperty(
"vertx.logger-delegate-factory-class-name",

Loading…
Cancel
Save