Documentation ¶
Index ¶
Constants ¶
View Source
const FileKey = "file"
FileKey holds the file field
View Source
const FunctionKey = "function"
FunctionKey holds the function field
View Source
const LineKey = "line"
LineKey holds the line field
View Source
const PackageKey = "package"
PackageKey holds the package field
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Formatter ¶
type Formatter struct { ChildFormatter logrus.Formatter // When true, line number will be tagged to fields as well Line bool // When true, package name will be tagged to fields as well Package bool // When true, file name will be tagged to fields as well File bool // When true, only base name of the file will be tagged to fields BaseNameOnly bool }
Formatter decorates log entries with function name and package name (optional) and line number (optional)
Click to show internal directories.
Click to hide internal directories.