diff --git a/common/src/main/java/io/netty/util/internal/logging/InternalLoggerFactory.java b/common/src/main/java/io/netty/util/internal/logging/InternalLoggerFactory.java index ef9581c47b..8ffc889f1d 100644 --- a/common/src/main/java/io/netty/util/internal/logging/InternalLoggerFactory.java +++ b/common/src/main/java/io/netty/util/internal/logging/InternalLoggerFactory.java @@ -45,12 +45,12 @@ public abstract class InternalLoggerFactory { f.newInstance(name).debug("Using SLF4J as the default logging framework"); } catch (Throwable ignore1) { try { - f = Log4JLoggerFactory.INSTANCE; - f.newInstance(name).debug("Using Log4J as the default logging framework"); + f = Log4J2LoggerFactory.INSTANCE; + f.newInstance(name).debug("Using Log4J2 as the default logging framework"); } catch (Throwable ignore2) { try { - f = Log4J2LoggerFactory.INSTANCE; - f.newInstance(name).debug("Using Log4J2 as the default logging framework"); + f = Log4JLoggerFactory.INSTANCE; + f.newInstance(name).debug("Using Log4J as the default logging framework"); } catch (Throwable ignore3) { f = JdkLoggerFactory.INSTANCE; f.newInstance(name).debug("Using java.util.logging as the default logging framework");