Documentation ¶
Index ¶
- func Debug(msg string, args ...interface{})
- func Debugf(format string, args ...interface{})
- func Error(msg string, args ...interface{})
- func Errorf(format string, args ...interface{})
- func Fatal(msg string, args ...interface{})
- func Fatalf(format string, args ...interface{})
- func Info(msg string, args ...interface{})
- func Infof(format string, args ...interface{})
- func Panic(msg string, args ...interface{})
- func Panicf(format string, args ...interface{})
- func SetLogger(ll ILog)
- func Warn(msg string, args ...interface{})
- func Warnf(format string, args ...interface{})
- type ILog
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ILog ¶
type ILog interface { //new //普通日志,如果有args,需要格式化 Debug(string, ...interface{}) Info(string, ...interface{}) Warn(string, ...interface{}) Error(string, ...interface{}) Panic(string, ...interface{}) Fatal(string, ...interface{}) //需要格式化日志 ,最后一个是context Debugf(string, ...interface{}) Infof(string, ...interface{}) Warnf(string, ...interface{}) Errorf(string, ...interface{}) Panicf(string, ...interface{}) Fatalf(string, ...interface{}) }
使用string是为了减少使用Spintf
Click to show internal directories.
Click to hide internal directories.