优化系统日志

This commit is contained in:
boyce
2019-02-13 11:12:20 +08:00
parent 4a9ab2e899
commit e484d0a18b
4 changed files with 33 additions and 5 deletions

16
service/Logger.go Normal file
View File

@@ -0,0 +1,16 @@
package service
const (
LEVER_UNKNOW = 0
LEVER_DEBUG = 1
LEVER_INFO = 2
LEVER_WARN = 3
LEVER_ERROR = 4
LEVER_FATAL = 5
LEVEL_MAX = 6
)
type ILogger interface {
Printf(level uint, format string, v ...interface{})
Print(level uint, v ...interface{})
}