Skip to content

Resolve command logback logging problem #86

@marcinczeczko

Description

@marcinczeczko

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 resolve command 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions