Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Log is default logger only output to os.Stdout Log = logrus.New() )
Functions ¶
This section is empty.
Types ¶
type Hook ¶
type Hook struct {
Field string
Skip int
Formatter func(file, function string, line int) string
// contains filtered or unexported fields
}
Hook ... define logrus hook type
type Logger ¶
Logger wrap logrus.Logger
func NewJSONLogger ¶
NewJSONLogger ... init logger to set filepath and format
Click to show internal directories.
Click to hide internal directories.