Skip to content

Commit

Permalink
Document using a different logger
Browse files Browse the repository at this point in the history
  • Loading branch information
markhobson committed Jul 28, 2018
1 parent b517060 commit 6541dc3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,18 @@ level:
...
```

## Configuration

### Using a different logger

To log HTTP traffic to an alternative logger, simply pass it to the customizer:

```java
RestTemplate restTemplate = new RestTemplateBuilder()
.customizers(new LoggingCustomizer(LogFactory.getLog("my.http.log")))
.build();
```

## Acknowledgements

Thanks to [@nwholloway](https://github.com/nwholloway) and [@hdpe](https://github.com/hdpe) for the original
Expand Down

0 comments on commit 6541dc3

Please sign in to comment.