优化日志服务增加前缀以及取消日志的日期目录

This commit is contained in:
boyce
2019-09-05 13:21:57 +08:00
parent 52a3122044
commit ca63245a93
5 changed files with 42 additions and 31 deletions

View File

@@ -10,10 +10,10 @@ type LogService struct {
logmodule *sysmodule.LogModule
}
func (slf *LogService) InitLog(logservicename string, openLevel uint) {
func (slf *LogService) InitLog(logservicename string, logFilePrefix string, openLevel uint) {
slf.SetServiceName(logservicename)
slf.logmodule = &sysmodule.LogModule{}
slf.logmodule.Init(logservicename, openLevel)
slf.logmodule.Init(logFilePrefix, openLevel)
}
func (slf *LogService) Printf(level uint, format string, v ...interface{}) {