mirror of
https://github.com/duanhf2012/origin.git
synced 2026-03-05 13:47:35 +08:00
优化日志服务增加前缀以及取消日志的日期目录
This commit is contained in:
@@ -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{}) {
|
||||
|
||||
Reference in New Issue
Block a user