Documentation ¶
Index ¶
Constants ¶
View Source
const ( FieldTime = "time" FieldLevel = "level" FieldCalledFile = "called_file" FieldCalledFunction = "called_function" FieldMessage = "message" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Formatter ¶
type Formatter struct { /** FieldsOrder Default: - time - level - called_file (if report caller was enabled) - called_function (if report caller was enabled) - other fields (sorted alphabetically) - message */ FieldsOrder []string // TimestampFormat - default: "2006-01-02 15:04:05.000" TimestampFormat string // HideKeys - show [fieldValue] instead of [fieldKey:fieldValue] HideKeys bool // NoColors - disable colors NoColors bool // NoFieldsColors - apply colors only to the level, default is level + fields NoFieldsColors bool // NoFieldsSpace - no space between fields NoFieldsSpace bool // ShowFullLevel - show a full level [WARNING] instead of [WARN] ShowFullLevel bool // NoUppercaseLevel - no upper case for level value NoUppercaseLevel bool // TrimMessages - trim white spaces on messages TrimMessages bool }
Formatter - logrus formatter, implements logrus.Formatter
Click to show internal directories.
Click to hide internal directories.