ILogger interface changed

This commit is contained in:
Lunny Xiao 2016-03-31 18:16:24 +08:00
parent 42bacbe76f
commit b9277f807c
1 changed files with 9 additions and 9 deletions

View File

@ -14,17 +14,17 @@ const (
// logger interface // logger interface
type ILogger interface { type ILogger interface {
Debug(v ...interface{}) (err error) Debug(v ...interface{})
Debugf(format string, v ...interface{}) (err error) Debugf(format string, v ...interface{})
Err(v ...interface{}) (err error) Error(v ...interface{})
Errf(format string, v ...interface{}) (err error) Errorf(format string, v ...interface{})
Info(v ...interface{}) (err error) Info(v ...interface{})
Infof(format string, v ...interface{}) (err error) Infof(format string, v ...interface{})
Warning(v ...interface{}) (err error) Warn(v ...interface{})
Warningf(format string, v ...interface{}) (err error) Warnf(format string, v ...interface{})
Level() LogLevel Level() LogLevel
SetLevel(l LogLevel) (err error) SetLevel(l LogLevel)
ShowSQL(show ...bool) ShowSQL(show ...bool)
IsShowSQL() bool IsShowSQL() bool