Skip to content

Commit

Permalink
Merge pull request #47 from gaol/issue_46
Browse files Browse the repository at this point in the history
[Issue-46] Initialize the Vert.x LoggerFactory in VertxSubsystemExten…
  • Loading branch information
gaol authored Dec 4, 2024
2 parents e864d8c + 713e883 commit 942e43b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
<module name="org.jboss.jandex"/>
<module name="org.jboss.vfs"/>
<module name="io.vertx.core" />
<module name="io.netty.netty-common" />
<module name="io.smallrye.common.annotation" />
<module name="io.smallrye.reactive.mutiny.vertx-core" />
</dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

package org.wildfly.extension.vertx;

import io.netty.util.internal.logging.InternalLoggerFactory;
import io.netty.util.internal.logging.JdkLoggerFactory;
import io.vertx.core.logging.LoggerFactory;
import org.jboss.as.controller.ModelVersion;
import org.jboss.as.controller.PathElement;
import org.jboss.as.controller.SubsystemModel;
Expand Down Expand Up @@ -40,6 +43,11 @@ static StandardResourceDescriptionResolver getResourceDescriptionResolver(final
public VertxSubsystemExtension() {
super(SubsystemConfiguration.of(SUBSYSTEM_NAME, VertxSubsystemModel.CURRENT, VertxSubsystemRegistrar::new),
SubsystemPersistence.of(VertxSubsystemSchema.CURRENT));
// Initialize the Netty logger factory
InternalLoggerFactory.setDefaultFactory(JdkLoggerFactory.INSTANCE);
// Initialize the Vert.x logger factory
//noinspection deprecation
LoggerFactory.initialise();
}

@Override
Expand Down

0 comments on commit 942e43b

Please sign in to comment.