Documentation ¶
Index ¶
- func Debug(a ...interface{})
- func Debugf(msg string, a ...interface{})
- func Error(a ...interface{})
- func ErrorString(a ...interface{})
- func Errorf(msg string, a ...interface{})
- func Fatal(a ...interface{})
- func Fatalf(msg string, a ...interface{})
- func GetDefaultStd() *stdLog
- func GetDefaultZap() *zapLog
- func Info(a ...interface{})
- func Infof(msg string, a ...interface{})
- func JSON(a ...interface{})
- func Panic(a ...interface{})
- func SaveError(errstring, flag string)
- func SetLog(log ILog)
- func TraceError(err error) error
- type ILog
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ILog ¶
type ILog interface { Debug(a ...interface{}) Debugf(msg string, a ...interface{}) Info(a ...interface{}) Infof(msg string, a ...interface{}) Error(a ...interface{}) Errorf(msg string, a ...interface{}) ErrorString(a ...interface{}) // ErrorString 打印错误信息(不记录错误文件) Fatal(v ...interface{}) // 系统级错误,退出 Fatalf(msg string, a ...interface{}) // 系统级错误,退出 SaveError(errstring, flag string) Panic(a ...interface{}) JSON(a ...interface{}) TraceError(err error) error Close() }
Click to show internal directories.
Click to hide internal directories.