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 SetLevel(level string)
- func SetLogger(logger Logger)
- func Warn(msg string, args ...interface{})
- func Warnf(format string, args ...interface{})
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
type Logger interface {
//普通日志,如果有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{})
SetLevel(string)
}
Click to show internal directories.
Click to hide internal directories.