mirror of https://github.com/sirupsen/logrus.git
readme: fix markdown code syntax for stdlib example
This commit is contained in:
parent
080ca65fb5
commit
ac38cb37a8
|
@ -386,7 +386,7 @@ and hooks. The level for those entries is `info`.
|
||||||
|
|
||||||
This means that we can override the standard library logger easily:
|
This means that we can override the standard library logger easily:
|
||||||
|
|
||||||
```
|
```go
|
||||||
logger := logrus.New()
|
logger := logrus.New()
|
||||||
logger.Formatter = &logrus.JSONFormatter{}
|
logger.Formatter = &logrus.JSONFormatter{}
|
||||||
|
|
||||||
|
@ -394,7 +394,7 @@ logger.Formatter = &logrus.JSONFormatter{}
|
||||||
// Note that `log` here references stdlib's log
|
// Note that `log` here references stdlib's log
|
||||||
// Not logrus imported under the name `log`.
|
// Not logrus imported under the name `log`.
|
||||||
log.SetOutput(logger.Writer())
|
log.SetOutput(logger.Writer())
|
||||||
``
|
```
|
||||||
|
|
||||||
#### Rotation
|
#### Rotation
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue