diff --git a/icslog/icslog.go b/icslog/icslog.go index 6ffef97..5fce737 100644 --- a/icslog/icslog.go +++ b/icslog/icslog.go @@ -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 {