Documentation
¶
Index ¶
Constants ¶
View Source
const (
LogKey = "DennyLogger"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSONFormatter ¶
type JSONFormatter = logrus.JSONFormatter
type Log ¶
func (*Log) ToJsonString ¶
ToJsonString convert an object into json string to beautify log return nil if marshalling error
func (*Log) WithFields ¶
WithFields add multiple key/value to log: key1 = value1, key2 = value2
type TextFormatter ¶
type TextFormatter = logrus.TextFormatter
Click to show internal directories.
Click to hide internal directories.