|
|
|
@ -204,7 +204,7 @@ func (s IcsService) LogWatcher() *icserror.IcsError {
|
|
|
|
|
// 일자별 rotate를 날짜 폴더로 이동
|
|
|
|
|
s.log.LogFileName = fmt.Sprintf("%s/%d%02d%02d/LGT.%03d.%d%02d%02d%02d%02d.log", s.log.Path, y2, m2, d2, s.config.InfoConfig.ServerID, y2, m2, d2, h2, mi2)
|
|
|
|
|
var oerr error
|
|
|
|
|
s.log.LogFile, oerr = os.OpenFile(s.log.LogFileName, os.O_RDWR|os.O_CREATE|os.O_APPEND, 0666)
|
|
|
|
|
s.log.LogFile, oerr = os.OpenFile(s.log.LogFileName, os.O_RDWR|os.O_CREATE|os.O_APPEND, 0777)
|
|
|
|
|
if oerr != nil {
|
|
|
|
|
icserror.ICSERRFileOpen.SetError(oerr)
|
|
|
|
|
//icserror.ICSERRFileOpen.PrintWithCaller(1)
|
|
|
|
|