Documentation ¶
Index ¶
- func Debug(args ...interface{})
- func Debugf(template string, args ...interface{})
- func Debugw(msg string, args ...interface{})
- func Error(args ...interface{})
- func Errorf(template string, args ...interface{})
- func Errorw(msg string, args ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(template string, args ...interface{})
- func Fatalw(msg string, args ...interface{})
- func Info(args ...interface{})
- func Infof(template string, args ...interface{})
- func Infow(msg string, args ...interface{})
- func InitLogger() *zap.SugaredLogger
- func Warn(args ...interface{})
- func Warnf(template string, args ...interface{})
- func Warnw(msg string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitLogger ¶
func InitLogger() *zap.SugaredLogger
InitLogger 初始化日志 使用方式; 在main函数中调用,如下:
logger := log.InitLogger() defer logger.Sync()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.