Skip to content

Commit

Permalink
fix code snippet in README.md (#1107)
Browse files Browse the repository at this point in the history
  • Loading branch information
agebhar1 authored Aug 9, 2021
1 parent 432f215 commit 5fc9079
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -496,8 +496,9 @@ By default, requests and responses are logged with an *slf4j* logger that uses t
```java
Logbook logbook = Logbook.builder()
.sink(new DefaultSink(
new DefaultHttpFormatter(),
new DefaultHttpLogWriter())
new DefaultHttpLogFormatter(),
new DefaultHttpLogWriter()
))
.build();
```

Expand All @@ -508,7 +509,7 @@ An alternative implementation is to log requests and responses to a `PrintStream
```java
Logbook logbook = Logbook.builder()
.sink(new DefaultSink(
new DefaultHttpFormatter(),
new DefaultHttpLogFormatter(),
new StreamHttpLogWriter(System.err)
))
.build();
Expand Down

0 comments on commit 5fc9079

Please sign in to comment.