Documentation ¶
Overview ¶
Copyright 2019 LinkinStar
Index ¶
- func Debug(v ...interface{})
- func Debugf(format string, v ...interface{})
- func Error(v ...interface{})
- func Errorf(format string, v ...interface{})
- func Info(v ...interface{})
- func Infof(format string, v ...interface{})
- func InitLogger(level, projectName, logPath string, maxAge, rotationTime time.Duration)
- func Warn(v ...interface{})
- func Warnf(format string, v ...interface{})
- type ILogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitLogger ¶
InitLogger 初始化日志Logger
Types ¶
type ILogger ¶
type ILogger interface { Debug(v ...interface{}) Debugf(format string, v ...interface{}) Info(v ...interface{}) Infof(format string, v ...interface{}) Warn(v ...interface{}) Warnf(format string, v ...interface{}) Error(v ...interface{}) Errorf(format string, v ...interface{}) }
ILogger 定义日志接口,如果后续需要替换日志框架只需要实现接口,替换实现即可
Click to show internal directories.
Click to hide internal directories.