-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Description
I just started playing with stack manager resolve command. Apparently, there is some issue with the logger used by the stack manager that throws following messages on console:
./vertx.sh resolve
2018-03-29 12:20:41.182 [main] INFO stack-manager-cache - Set resolver cache to /Users/marcin.czeczko/Work/vertx-cli-starter/vertx/.stack-manager-cache.json
2018-03-29 12:20:41.185 [main] INFO stack-manager-cache - Loading resolver cache from /Users/marcin.czeczko/Work/vertx-cli-starter/vertx/.stack-manager-cache.json
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.
What I did is:
- Used vertx-cli-starter project
- Added slf4j-api, logback-classic, logback-core jars to lib/ and to the vertx-stack.json as dependencies
- To the java exec command I added
-Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.SLF4JLogDelegateFactory
The effects are:
- When running
vertx resolvecommand prints out the SLF4J error about StaticLoggerBinder - If I run my verticle that uses logging it works just fine.
It seems that stack-manager is using different logging api. Could you please advice how can it be solved ?
Btw. the reproducer is here: https://github.com/marcinczeczko/vertx-starter-logger-issue
Metadata
Metadata
Assignees
Labels
No labels