Improve references to Logstash formatter

This commit is contained in:
Lorenz Leutgeb 2015-09-17 19:37:51 +02:00
parent 418b41d23a
commit 005f65e9b5
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 field to `true`. To force no colored output even if there is a TTY set the
`DisableColors` field to `true` `DisableColors` field to `true`
* `logrus.JSONFormatter`. Logs fields as JSON. * `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 ```go
logrus.SetFormatter(&logrus_logstash.LogstashFormatter{Type: “application_name"}) logrus.SetFormatter(&logstash.LogstashFormatter{Type: “application_name"})
``` ```
Third party logging formatters: Third party logging formatters: