You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -285,7 +285,7 @@ func init() {
285
285
}
286
286
}
287
287
```
288
-
Note: Syslog hook also support connecting to local syslog (Ex. "/dev/log" or "/var/run/syslog" or "/var/run/log"). For the detail, please check the [syslog hook README](hooks/syslog/README.md).
288
+
Note: Syslog hooks also support connecting to local syslog (Ex. "/dev/log" or "/var/run/syslog" or "/var/run/log"). For the detail, please check the [syslog hook README](hooks/syslog/README.md).
289
289
290
290
A list of currently known service hooks can be found in this wiki [page](https://github.com/sirupsen/logrus/wiki/Hooks)
291
291
@@ -376,7 +376,7 @@ The built-in logging formatters are:
376
376
*`logrus.JSONFormatter`. Logs fields as JSON.
377
377
* All options are listed in the [generated docs](https://pkg.go.dev/github.com/sirupsen/logrus#JSONFormatter).
378
378
379
-
Thirdparty logging formatters:
379
+
Third-party logging formatters:
380
380
381
381
*[`FluentdFormatter`](https://github.com/joonix/log). Formats entries that can be parsed by Kubernetes and Google Container Engine.
382
382
*[`GELF`](https://github.com/fabienm/go-logrus-formatters). Formats entries so they comply to Graylog's [GELF 1.1 specification](http://docs.graylog.org/en/2.4/pages/gelf.html).
@@ -455,7 +455,7 @@ entries. It should not be a feature of the application-level logger.
455
455
456
456
#### Testing
457
457
458
-
Logrus has a builtin facility for asserting the presence of log messages. This is implemented through the `test` hook and provides:
458
+
Logrus has a built-in facility for asserting the presence of log messages. This is implemented through the `test` hook and provides:
459
459
460
460
* decorators for existing logger (`test.NewLocal` and `test.NewGlobal`) which basically just adds the `test` hook
461
461
* a test logger (`test.NewNullLogger`) that just records log messages (and does not output any):
Logrus can register one or more functions that will be called when any `fatal`
487
487
level message is logged. The registered handlers will be executed before
488
488
logrus performs an `os.Exit(1)`. This behavior may be helpful if callers need
489
-
to gracefully shutdown. Unlike a `panic("Something went wrong...")` call which can be intercepted with a deferred `recover` a call to `os.Exit(1)` can not be intercepted.
489
+
to gracefully shut down. Unlike a `panic("Something went wrong...")` call which can be intercepted with a deferred `recover` a call to `os.Exit(1)` can not be intercepted.
0 commit comments