Documentation
¶
Index ¶
- Constants
- Variables
- func CheckErrf(err error, format string, a ...any)
- func Checkerr(err error, i ...interface{})
- func Debug(i ...any)
- func Debugf(format string, a ...any)
- func DieCheckErrf(err error, format string, a ...any)
- func DieCheckerr(err error, i ...any)
- func Error(i ...interface{})
- func ErrorReturn(i ...interface{}) bool
- func Errorf(format string, a ...any)
- func Fatal(i ...interface{})
- func Fatalf(format string, a ...any)
- func Info(i ...interface{})
- func Infof(format string, a ...any)
- func Log(i ...interface{})
- func Pfunc(a ...interface{})
- func Recover()
- func ReturnCheckerr(err error, i ...interface{}) bool
- func Trace(i ...any)
- func Tracef(format string, a ...any)
- func Warn(i ...interface{})
- func Warnf(format string, a ...any)
Constants ¶
View Source
const ( LogLevelTrace = iota LogLevelDebug LogLevelInfo LogLevelWarn LogLevelError LogLevelFatal )
Variables ¶
View Source
var Level = LogLevelInfo
Functions ¶
func DieCheckErrf ¶
func ErrorReturn ¶
func ErrorReturn(i ...interface{}) bool
func ReturnCheckerr ¶
ReturnCheckerr 检查错误,有异常就返回false
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.