|
|
|
@ -141,6 +141,7 @@ func NewIcsLog(conf *icsconf.LogConfig, level int, output int, path string, disk
|
|
|
|
|
yyyy, mm, dd := gIcsLog.CurrentDate.Date()
|
|
|
|
|
hh, mi := diffMinutes.Hour(), diffMinutes.Minute()
|
|
|
|
|
gIcsLog.LogFileName = fmt.Sprintf("%s/%d%02d%02d/LGT.%03d.%d%02d%02d%02d%02d.log", gIcsLog.Path, yyyy, mm, dd, icsconf.GetIcsConfig().InfoConfig.ServerID, yyyy, mm, dd, hh, mi)
|
|
|
|
|
fmt.Println("logfileName ", gIcsLog.LogFileName)
|
|
|
|
|
|
|
|
|
|
stat, err := os.Stat(gIcsLog.LogFileName)
|
|
|
|
|
if err == nil {
|
|
|
|
|