readme: add examples of json

This commit is contained in:
Simon Eskildsen 2014-03-10 20:01:07 -04:00
parent 0719d9a9d8
commit f234137534
1 changed files with 2 additions and 1 deletions

View File

@ -8,7 +8,8 @@ plain text):
![Colored](http://i.imgur.com/PY7qMwd.png)
With `log.Formatter = new(logrus.JSONFormatter)`:
With `log.Formatter = new(logrus.JSONFormatter)`, for easy parsing by logstash
or Splunk:
```json
{"animal":"walrus","level":"info","msg":"A group of walrus emerges from the