Browse Source

Recommend FULL logging level when using SLF4J (#1146)

Fixes #1142 

Using the logger without setting the correct logging level results in no logging at all.
pull/1148/head
dnsbtchr 5 years ago committed by Kevin Davis
parent
commit
1821d94669
  1. 1
      README.md
  2. 1
      slf4j/README.md

1
README.md

@ -488,6 +488,7 @@ public class Example { @@ -488,6 +488,7 @@ public class Example {
public static void main(String[] args) {
GitHub github = Feign.builder()
.logger(new Slf4jLogger())
.logLevel(Level.FULL)
.target(GitHub.class, "https://api.github.com");
}
}

1
slf4j/README.md

@ -8,5 +8,6 @@ To use SLF4J with Feign, add both the SLF4J module and an SLF4J binding of your @@ -8,5 +8,6 @@ To use SLF4J with Feign, add both the SLF4J module and an SLF4J binding of your
```java
GitHub github = Feign.builder()
.logger(new Slf4jLogger())
.logLevel(Level.FULL)
.target(GitHub.class, "https://api.github.com");
```

Loading…
Cancel
Save