Documentation
¶
Overview ¶
Copyright (c) 2020 Khramtsov Aleksei (seniorGolang@gmail.com). This file (formatter.go at 14.05.2020, 2:20) is subject to the terms and conditions defined in file 'LICENSE', which is part of this project source code.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Formatter ¶
type Formatter struct {
FieldsOrder []string // default: fields sorted alphabetically
TimestampFormat string // default: time.StampMilli = "Jan _2 15:04:05.000"
HideKeys bool // show [fieldValue] instead of [fieldKey:fieldValue]
NoColors bool // disable colors
NoFieldsColors bool // color only level, default is level + fields
ShowFullLevel bool // true to show full level [WARNING] instead [WARN]
TrimMessages bool // true to trim whitespace on messages
}
Formatter - logrus formatter, implements logrus.Formatter
Click to show internal directories.
Click to hide internal directories.