mirror of https://github.com/sirupsen/logrus.git
readme: fix comment on context logger
This commit is contained in:
parent
7586a697f6
commit
cdd90c38c6
|
@ -109,8 +109,8 @@ func main() {
|
||||||
"number": 100,
|
"number": 100,
|
||||||
}).Fatal("The ice breaks!")
|
}).Fatal("The ice breaks!")
|
||||||
|
|
||||||
# A common pattern is to re-use fields between logging statements by re-using
|
// A common pattern is to re-use fields between logging statements by re-using
|
||||||
# the logrus.Entry returned from WithFields()
|
// the logrus.Entry returned from WithFields()
|
||||||
contextLogger := log.WithFields(log.Fields{
|
contextLogger := log.WithFields(log.Fields{
|
||||||
"common": "this is a common field",
|
"common": "this is a common field",
|
||||||
"other": "I also should be logged always",
|
"other": "I also should be logged always",
|
||||||
|
|
Loading…
Reference in New Issue