poniedziałek, 15 lipca 2019

Wiremock standalone - SLF4J: Failed to load logger implementation

Seems like `wiremock-standlone` comes without SLF4J implementation (?).
$ java -wiremock-standalone-2.23.2.jar com.github.tomakehurst.wiremock.standalone.WireMockServerRunner --proxy-all="http://localhost:8090" --verbose
2019-07-15 11:41:35.091 Verbose logging enabled
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.
2019-07-15 11:41:35.650 Verbose logging enabled
Let's fix it by adding simple implementation on the classpath:
$ java -cp ~/.m2/repository/org/slf4j/slf4j-simple/1.7.12/slf4j-simple-1.7.12.jar:wiremock-standalone-2.23.2.jar \
  com.github.tomakehurst.wiremock.standalone.WireMockServerRunner \
  --proxy-all="http://localhost:8090" \
  --port 0 \
  --verbose \
  --print-all-network-traffic

Brak komentarzy:

Prześlij komentarz