|
|
|
@ -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", |
|
|
|
|