Documentation
¶
Index ¶
- Variables
- func Debug(args ...interface{})
- func Debugf(template string, args ...interface{})
- func Error(args ...interface{})
- func Fatal(args ...interface{})
- func GetLogErrorPath() string
- func Info(args ...interface{})
- func Infof(template string, args ...interface{})
- func InitZapLog(debug bool) *zap.Logger
- func LoadLogger(debug bool) func()
- func LogPanic(details []byte)
- func UnexpectedError(err error)
- func Warn(args ...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var SUGARED *zap.SugaredLogger
Functions ¶
func GetLogErrorPath ¶
func GetLogErrorPath() string
func InitZapLog ¶
func LoadLogger ¶
func LoadLogger(debug bool) func()
func UnexpectedError ¶
func UnexpectedError(err error)
UnexpectedError works like Error function and logs the error details to a specified log file (a new log file is used each time).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.