fix example

This commit is contained in:
Neil Isaac
2017-11-21 22:56:37 -05:00
committed by GitHub
parent bf1fb70b2b
commit b9eceae8f6
+3 -3
View File
@@ -62,11 +62,11 @@ type TextFormatter struct {
// FieldMap allows users to customize the names of keys for default fields. // FieldMap allows users to customize the names of keys for default fields.
// As an example: // As an example:
// formatter := &JSONFormatter{ // formatter := &TextFormatter{
// FieldMap: FieldMap{ // FieldMap: FieldMap{
// FieldKeyTime: "@timestamp", // FieldKeyTime: "@timestamp",
// FieldKeyLevel: "@level", // FieldKeyLevel: "@level",
// FieldKeyMsg: "@message"}} // FieldKeyMsg: "@message"}}
FieldMap FieldMap FieldMap FieldMap
sync.Once sync.Once