日志屏幕输出

This commit is contained in:
boyce
2019-03-19 17:23:50 +08:00
parent 2c23d7fbd9
commit 7a215e6a83
5 changed files with 30 additions and 0 deletions

View File

@@ -13,4 +13,5 @@ const (
type ILogger interface {
Printf(level uint, format string, v ...interface{})
Print(level uint, v ...interface{})
SetLogLevel(level uint)
}

View File

@@ -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)
}