readme: add examples of json
This commit is contained in:
@@ -8,7 +8,8 @@ plain text):
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
With `log.Formatter = new(logrus.JSONFormatter)`:
|
With `log.Formatter = new(logrus.JSONFormatter)`, for easy parsing by logstash
|
||||||
|
or Splunk:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{"animal":"walrus","level":"info","msg":"A group of walrus emerges from the
|
{"animal":"walrus","level":"info","msg":"A group of walrus emerges from the
|
||||||
|
|||||||
Reference in New Issue
Block a user