Merge pull request #256 from flowlo/patch-1

Improve references to Logstash formatter
This commit is contained in:
Simon Eskildsen 2015-10-05 07:35:44 -04:00
commit 05fe8fb917
1 changed files with 2 additions and 2 deletions

View File

@ -296,10 +296,10 @@ The built-in logging formatters are:
field to `true`. To force no colored output even if there is a TTY set the
`DisableColors` field to `true`
* `logrus.JSONFormatter`. Logs fields as JSON.
* `logrus_logstash.LogstashFormatter`. Logs fields as Logstash Events (http://logstash.net).
* `logrus/formatters/logstash.LogstashFormatter`. Logs fields as [Logstash](http://logstash.net) Events.
```go
logrus.SetFormatter(&logrus_logstash.LogstashFormatter{Type: “application_name"})
logrus.SetFormatter(&logstash.LogstashFormatter{Type: “application_name"})
```
Third party logging formatters: