Open pierrecdn opened 9 years ago
Trying maven-3.2.3, it's a little better since it implements SLF4J vs. Plexus logging API (http://maven.apache.org/maven-logging.html), and probably for this reason I've no no more complains like that :
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
log4j:WARN No appenders could be found for logger (io.netty.util.internal.logging.InternalLoggerFactory).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
But, typically, it doesn't take in account the log4j2.xml file in the classpath, and there are still some components that don't log anything.
If I do some operations in maven directories :
It seems that maven logging configuration preempt any other given by an embedded vert.x core
May not be a bug, but any advice will be appreciated !
Trying to normalize logs and log frameworks on my platform, I currently deploy docker images containing vert.x plus required jars and resources needed to make log4j 2.0 works.
In detail :
To reproduce this environment on a developer workstation I put these resource in src/main/platform_lib directory (maven project).
When I run the module using plain vertx, I pass these options and obtain good results (ie. consistent logging) :
But, trying to do the same with maven plugin via vertx:runMod, I fail in printing 95% of logs, probably because of maven embedded logger (3.0.5) or something like that :
(It seems that the "main" module could not instantiate any logging implementation and/or bridges)
Debugging the plugin result in :
Any feedbacks on this subject ?