readme: add more motivation for fields

This commit is contained in:
Simon Eskildsen 2014-03-11 11:01:18 -04:00
parent 8fb601a60b
commit c86733fba0
1 changed files with 3 additions and 1 deletions

View File

@ -46,7 +46,9 @@ log.WithFields(logrus.Fields{
``` ```
We've found this API forces you to think about logging in a way that produces We've found this API forces you to think about logging in a way that produces
much more useful logging messages. The `WithFields` call is optional. much more useful logging messages. We've been in countless situations where just
a single added field to a log statement that was already there would've saved us
hours. The `WithFields` call is optional.
In general, with Logrus using any of the `printf`-family functions should be In general, with Logrus using any of the `printf`-family functions should be
seen as a hint you want to add a field, however, you can still use the seen as a hint you want to add a field, however, you can still use the