Documentation
¶
Index ¶
- func AddConsoleOut(level int)
- func AddField(key, value string)
- func AddFileOut(logFilePath string, level, days int) (err error)
- func DisableDefaultConsole()
- func Err(err error)
- func ErrWithFields(err error, inFields logrus.Fields)
- func Fatal(err error)
- func SetLogDetailsByConfig(app App, log Log)
- type App
- type Log
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFileOut ¶
AddFileOut only support unix os
func ErrWithFields ¶
ErrWithFields print stack trace if possible
func SetLogDetailsByConfig ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.