mirror of https://github.com/sirupsen/logrus.git
fix example
This commit is contained in:
parent
bf1fb70b2b
commit
b9eceae8f6
|
@ -62,11 +62,11 @@ type TextFormatter struct {
|
|||
|
||||
// FieldMap allows users to customize the names of keys for default fields.
|
||||
// As an example:
|
||||
// formatter := &JSONFormatter{
|
||||
// formatter := &TextFormatter{
|
||||
// FieldMap: FieldMap{
|
||||
// FieldKeyTime: "@timestamp",
|
||||
// FieldKeyTime: "@timestamp",
|
||||
// FieldKeyLevel: "@level",
|
||||
// FieldKeyMsg: "@message"}}
|
||||
// FieldKeyMsg: "@message"}}
|
||||
FieldMap FieldMap
|
||||
|
||||
sync.Once
|
||||
|
|
Loading…
Reference in New Issue