mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-21 04:04:43 +08:00
优化系统日志
This commit is contained in:
16
service/Logger.go
Normal file
16
service/Logger.go
Normal 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{})
|
||||
}
|
||||
Reference in New Issue
Block a user