mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-03 22:45:13 +08:00
日志屏幕输出
This commit is contained in:
@@ -13,4 +13,5 @@ const (
|
||||
type ILogger interface {
|
||||
Printf(level uint, format string, v ...interface{})
|
||||
Print(level uint, v ...interface{})
|
||||
SetLogLevel(level uint)
|
||||
}
|
||||
|
||||
@@ -261,6 +261,7 @@ func (slf *BaseModule) RunModule(module IModule) {
|
||||
if err != nil {
|
||||
GetLogger().Printf(LEVER_ERROR, "Start module %T id is %d is fail,reason:%v...", module, module.GetModuleId(), err)
|
||||
} else {
|
||||
|
||||
GetLogger().Printf(LEVER_INFO, "Start module %T ...", module)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user