|
|
@ -122,7 +122,8 @@ func NewIcsLog(conf *icsconf.LogConfig, level int, output int, path string, disk
|
|
|
|
gIcsLog.rotateNum = MAX_LOG_ROTATE_NUM
|
|
|
|
gIcsLog.rotateNum = MAX_LOG_ROTATE_NUM
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
gIcsLog.logger = log.New(&gIcsLog.buf, "", log.Ldate|log.Ltime|log.Lmicroseconds|log.Lshortfile)
|
|
|
|
// gIcsLog.logger = log.New(&gIcsLog.buf, "", log.Ldate|log.Ltime|log.Lmicroseconds|log.Lshortfile)
|
|
|
|
|
|
|
|
gIcsLog.logger = log.New(&gIcsLog.buf, "", 0)
|
|
|
|
|
|
|
|
|
|
|
|
gIcsLog.CurrentDate = time.Now()
|
|
|
|
gIcsLog.CurrentDate = time.Now()
|
|
|
|
gIcsLog.DelDay = conf.DelConfig.DelDay
|
|
|
|
gIcsLog.DelDay = conf.DelConfig.DelDay
|
|
|
|