forked from mirror/logrus
parent
cdaedc68f2
commit
fd860ab61d
|
@ -301,7 +301,7 @@ The built-in logging formatters are:
|
||||||
* `logrus/formatters/logstash.LogstashFormatter`. Logs fields as [Logstash](http://logstash.net) Events.
|
* `logrus/formatters/logstash.LogstashFormatter`. Logs fields as [Logstash](http://logstash.net) Events.
|
||||||
|
|
||||||
```go
|
```go
|
||||||
logrus.SetFormatter(&logstash.LogstashFormatter{Type: “application_name"})
|
logrus.SetFormatter(&logstash.LogstashFormatter{Type: "application_name"})
|
||||||
```
|
```
|
||||||
|
|
||||||
Third party logging formatters:
|
Third party logging formatters:
|
||||||
|
|
Loading…
Reference in New Issue