로그추가

main
JungJun 2 years ago
parent d1505162d4
commit 94643d39de

@ -141,6 +141,7 @@ func NewIcsLog(conf *icsconf.LogConfig, level int, output int, path string, disk
yyyy, mm, dd := gIcsLog.CurrentDate.Date() yyyy, mm, dd := gIcsLog.CurrentDate.Date()
hh, mi := diffMinutes.Hour(), diffMinutes.Minute() 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) 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) stat, err := os.Stat(gIcsLog.LogFileName)
if err == nil { if err == nil {

Loading…
Cancel
Save