Skip to content

Commit 1baa431

Browse files
authored
Minor grammar tweaks
1 parent dd1b4c2 commit 1baa431

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ func init() {
285285
}
286286
}
287287
```
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).
289289

290290
A list of currently known service hooks can be found in this wiki [page](https://github.com/sirupsen/logrus/wiki/Hooks)
291291

@@ -376,7 +376,7 @@ The built-in logging formatters are:
376376
* `logrus.JSONFormatter`. Logs fields as JSON.
377377
* All options are listed in the [generated docs](https://godoc.org/github.com/sirupsen/logrus#JSONFormatter).
378378

379-
Third party logging formatters:
379+
Third-party logging formatters:
380380

381381
* [`FluentdFormatter`](https://github.com/joonix/log). Formats entries that can be parsed by Kubernetes and Google Container Engine.
382382
* [`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.
455455

456456
#### Testing
457457

458-
Logrus has a built in 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:
459459

460460
* decorators for existing logger (`test.NewLocal` and `test.NewGlobal`) which basically just adds the `test` hook
461461
* a test logger (`test.NewNullLogger`) that just records log messages (and does not output any):
@@ -486,12 +486,12 @@ func TestSomething(t*testing.T){
486486
Logrus can register one or more functions that will be called when any `fatal`
487487
level message is logged. The registered handlers will be executed before
488488
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.
490490

491491
```
492492
...
493493
handler := func() {
494-
// gracefully shutdown something...
494+
// gracefully shut down something...
495495
}
496496
logrus.RegisterExitHandler(handler)
497497
...
@@ -502,7 +502,7 @@ logrus.RegisterExitHandler(handler)
502502
By default, Logger is protected by a mutex for concurrent writes. The mutex is held when calling hooks and writing logs.
503503
If you are sure such locking is not needed, you can call logger.SetNoLock() to disable the locking.
504504

505-
Situation when locking is not needed includes:
505+
Situations when locking is not needed include:
506506

507507
* You have no hooks registered, or hooks calling is already thread-safe.
508508

0 commit comments

Comments
 (0)