diff --git a/README.md b/README.md index ba84adf70..5e6f79d1a 100644 --- a/README.md +++ b/README.md @@ -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(); ``` @@ -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();