hostname 추가, 통합통계 양식 변경

main
JungJun 2 years ago
parent 5201d00a94
commit 62cda2c212

@ -26,6 +26,7 @@ type InfoConfig struct {
TenentID string `xml:"TENENTID"`
ServerID int `xml:"SERVERID"`
ServerIP string `xml:"SERVERIP"`
HostName string `xml:"HOSTNAME"`
}
type Target struct {

@ -100,19 +100,19 @@ func NewIcsLog(conf *icsconf.LogConfig, level int, output int, path string, disk
Path: path,
DiskLimit: disklimit,
IsDiskFull: false,
logSize: DEFAULT_LOG_MAX_SIZE,
rotateNum: DEFAULT_LOG_ROTATE_NUM,
// logSize: DEFAULT_LOG_MAX_SIZE,
rotateNum: DEFAULT_LOG_ROTATE_NUM,
}
gIcsLog.M = &sync.Mutex{}
gIcsLog.isRotate = strings.Compare("YES", strings.ToUpper(gIcsLog.conf.RotateConfig.YesNo)) == 0
//gIcsLog.isRotate = strings.Compare("YES", strings.ToUpper(gIcsLog.conf.LogConfig.RotateConfig.YesNo)) == 0
var serr error
gIcsLog.logSize, serr = strconv.Atoi(gIcsLog.conf.RotateConfig.Size)
//gIcsLog.logSize, serr = strconv.Atoi(gIcsLog.conf.LogConfig.RotateConfig.Size)
if serr != nil {
gIcsLog.logSize = DEFAULT_LOG_MAX_SIZE
}
// gIcsLog.logSize, serr = strconv.Atoi(gIcsLog.conf.RotateConfig.Size)
// //gIcsLog.logSize, serr = strconv.Atoi(gIcsLog.conf.LogConfig.RotateConfig.Size)
// if serr != nil {
// gIcsLog.logSize = DEFAULT_LOG_MAX_SIZE
// }
gIcsLog.rotateNum, serr = strconv.Atoi(gIcsLog.conf.RotateConfig.Num)
//gIcsLog.rotateNum, serr = strconv.Atoi(gIcsLog.conf.LogConfig.RotateConfig.Num)
if serr != nil {
@ -153,7 +153,7 @@ func NewIcsLog(conf *icsconf.LogConfig, level int, output int, path string, disk
}
fmt.Println("mkdir success")
gIcsLog.LogFile, oerr = os.OpenFile(gIcsLog.LogFileName, os.O_RDWR|os.O_CREATE|os.O_APPEND, 0666)
gIcsLog.LogFile, oerr = os.OpenFile(gIcsLog.LogFileName, os.O_RDWR|os.O_CREATE|os.O_APPEND, 0777)
if oerr != nil {
//fmt.Println(gIcsLog.LogFileName)
icserror.ICSERRFileOpen.SetError(oerr)
@ -171,7 +171,7 @@ func NewIcsLog(conf *icsconf.LogConfig, level int, output int, path string, disk
return
}
gIcsLog.LogFile, oerr = os.OpenFile(gIcsLog.LogFileName, os.O_RDWR|os.O_CREATE|os.O_APPEND, 0666)
gIcsLog.LogFile, oerr = os.OpenFile(gIcsLog.LogFileName, os.O_RDWR|os.O_CREATE|os.O_APPEND, 0777)
if oerr != nil {
//fmt.Println(gIcsLog.LogFileName)
icserror.ICSERRFileOpen.SetError(oerr)
@ -191,7 +191,7 @@ func NewIcsLog(conf *icsconf.LogConfig, level int, output int, path string, disk
}
fmt.Println("mkdir success")
gIcsLog.LogFile, oerr = os.OpenFile(gIcsLog.LogFileName, os.O_RDWR|os.O_CREATE|os.O_APPEND, 0666)
gIcsLog.LogFile, oerr = os.OpenFile(gIcsLog.LogFileName, os.O_RDWR|os.O_CREATE|os.O_APPEND, 0777)
if oerr != nil {
//fmt.Println(gIcsLog.LogFileName)
icserror.ICSERRFileOpen.SetError(oerr)

@ -153,6 +153,7 @@ func GetIcsSid() *SeqVal {
func StatsCommandVG(t *icsnet.IcsTCPNet, bufend string) {
l := icslog.GetIcsLog()
conf := icsconf.GetIcsConfig()
statInfos := new(StatInfos)
s := GetIcsSid()
@ -187,100 +188,86 @@ func StatsCommandVG(t *icsnet.IcsTCPNet, bufend string) {
svc := statInfos.SvcType[0:1]
seqId := s.Seq + svc + randNum
hostName := conf.InfoConfig.HostName
insLog := ""
insLog += fmt.Sprintf("seqId=%s|", seqId)
insLog += fmt.Sprintf("LogTime=%s|", statInfos.LogTime)
insLog += fmt.Sprintf("LogType=%s|", statInfos.LogType)
insLog += fmt.Sprintf("Sid=%s|", statInfos.Sid)
insLog += fmt.Sprintf("ResultCode=%s|", statInfos.ResultCode)
insLog += fmt.Sprintf("ReqTime=%s|", statInfos.ReqTime)
insLog += fmt.Sprintf("RspTime=%s|", statInfos.RspTime)
insLog += fmt.Sprintf("ClientIp=%s|", statInfos.ClientIp)
insLog += fmt.Sprintf("DevInfo=%s|", statInfos.DevInfo)
insLog += fmt.Sprintf("OsInfo=%s|", statInfos.OsInfo)
insLog += fmt.Sprintf("NwInfo=%s|", statInfos.NwInfo)
insLog += fmt.Sprintf("SvcName=%s|", statInfos.SvcName)
insLog += fmt.Sprintf("DevModel=%s|", statInfos.DevModel)
insLog += fmt.Sprintf("CarrierType=%s|", statInfos.CarrierType)
insLog += fmt.Sprintf("HostName=%s|", statInfos.HostName)
insLog += fmt.Sprintf("ScnName=%s|", statInfos.ScnName)
insLog += fmt.Sprintf("CallId=%s|", statInfos.CallId)
insLog += fmt.Sprintf("TrId=%s|", statInfos.TrId)
insLog += fmt.Sprintf("ConcCall=%s|", statInfos.ConcCall)
insLog += fmt.Sprintf("SvcType=%s|", statInfos.SvcType)
insLog += fmt.Sprintf("SvcReqTime=%s|", statInfos.SvcReqTime)
insLog += fmt.Sprintf("SvcRspTime=%s|", statInfos.SvcRspTime)
insLog += fmt.Sprintf("TransferNo=%s|", statInfos.TransferNo)
insLog += fmt.Sprintf("CallTime=%s|", statInfos.CallTime)
insLog += fmt.Sprintf("CallType=%s|", statInfos.CallType)
insLog += fmt.Sprintf("FunName=%s|", statInfos.FunName)
insLog += fmt.Sprintf("ResultMsg=%s|", statInfos.ResultMsg)
insLog += fmt.Sprintf("SttText=%s|", statInfos.SttText)
insLog += fmt.Sprintf("TtsText=%s", statInfos.TtsText)
insLog += fmt.Sprintf("SEQ_ID=%s|", seqId)
insLog += fmt.Sprintf("LOG_TIME=%s|", statInfos.LogTime)
insLog += fmt.Sprintf("LOG_TYPE=%s|", statInfos.LogType)
insLog += fmt.Sprintf("SID=%s|", statInfos.Sid)
insLog += fmt.Sprintf("RESULT_CODE=%s|", statInfos.ResultCode)
insLog += fmt.Sprintf("REQ_TIME=%s|", statInfos.ReqTime)
insLog += fmt.Sprintf("RSP_TIME=%s|", statInfos.RspTime)
insLog += fmt.Sprintf("CLIENT_IP=%s|", statInfos.ClientIp)
insLog += fmt.Sprintf("DEV_INFO=%s|", statInfos.DevInfo)
insLog += fmt.Sprintf("OS_INFO=%s|", statInfos.OsInfo)
insLog += fmt.Sprintf("NW_INFO=%s|", statInfos.NwInfo)
insLog += fmt.Sprintf("SVC_NAME=%s|", statInfos.SvcName)
insLog += fmt.Sprintf("DEV_MODEL=%s|", statInfos.DevModel)
insLog += fmt.Sprintf("CARRIER_TYPE=%s|", statInfos.CarrierType)
insLog += fmt.Sprintf("HOST_NAME=%s|", hostName)
insLog += fmt.Sprintf("SCN_NAME=%s|", statInfos.ScnName)
insLog += fmt.Sprintf("CALL_ID=%s|", statInfos.CallId)
insLog += fmt.Sprintf("TR_ID=%s|", statInfos.TrId)
insLog += fmt.Sprintf("CONC_CALL=%s|", statInfos.ConcCall)
insLog += fmt.Sprintf("SVC_TYPE=%s|", statInfos.SvcType)
insLog += fmt.Sprintf("SVC_REQ_TIME=%s|", statInfos.SvcReqTime)
insLog += fmt.Sprintf("SVC_RSP_TIME=%s|", statInfos.SvcRspTime)
insLog += fmt.Sprintf("TRANSFER_NO=%s|", statInfos.TransferNo)
insLog += fmt.Sprintf("CALL_TIME=%s|", statInfos.CallTime)
insLog += fmt.Sprintf("CALL_TYPE=%s|", statInfos.CallType)
insLog += fmt.Sprintf("FUN_NAME=%s|", statInfos.FunName)
insLog += fmt.Sprintf("RESULT_MSG=%s|", statInfos.ResultMsg)
insLog += fmt.Sprintf("STT_TEXT=%s|", statInfos.SttText)
insLog += fmt.Sprintf("TTS_TEXT=%s", statInfos.TtsText)
l.Printf(icslog.LOG_LEVEL_INFO, -1, "%s", insLog)
fmt.Printf("stats- %s \n", statInfos.SeqId)
fmt.Printf("stats- %s \n", statInfos.LogTime)
fmt.Printf("stats- %s \n", statInfos.LogType)
fmt.Printf("stats- %s \n", statInfos.Sid)
fmt.Printf("stats- %s \n", statInfos.ResultCode)
fmt.Printf("stats- %s \n", statInfos.ReqTime)
fmt.Printf("stats- %s \n", statInfos.RspTime)
fmt.Printf("stats- %s \n", statInfos.ClientIp)
fmt.Printf("stats- %s \n", statInfos.DevInfo)
fmt.Printf("stats- %s \n", statInfos.OsInfo)
fmt.Printf("stats- %s \n", statInfos.NwInfo)
fmt.Printf("stats- %s \n", statInfos.SvcName)
fmt.Printf("stats- %s \n", statInfos.DevModel)
fmt.Printf("stats- %s \n", statInfos.CarrierType)
fmt.Printf("stats- %s \n", statInfos.HostName)
fmt.Printf("stats- %s \n", statInfos.ScnName)
fmt.Printf("stats- %s \n", statInfos.CallId)
fmt.Printf("stats- %s \n", statInfos.TrId)
fmt.Printf("stats- %s \n", statInfos.ConcCall)
fmt.Printf("stats- %s \n", statInfos.SvcType)
fmt.Printf("stats- %s \n", statInfos.SvcReqTime)
fmt.Printf("stats- %s \n", statInfos.SvcRspTime)
fmt.Printf("stats- %s \n", statInfos.TransferNo)
fmt.Printf("stats- %s \n", statInfos.CallTime)
fmt.Printf("stats- %s \n", statInfos.CallType)
fmt.Printf("stats- %s \n", statInfos.FunName)
fmt.Printf("stats- %s \n", statInfos.ResultMsg)
fmt.Printf("stats- %s \n", statInfos.SttText)
fmt.Printf("stats- %s \n", statInfos.TtsText)
// fmt.Printf("stats- %s \n", statInfos.SeqId)
// fmt.Printf("stats- %s \n", statInfos.LogTime)
// fmt.Printf("stats- %s \n", statInfos.LogType)
// fmt.Printf("stats- %s \n", statInfos.Sid)
// fmt.Printf("stats- %s \n", statInfos.ResultCode)
// fmt.Printf("stats- %s \n", statInfos.ReqTime)
// fmt.Printf("stats- %s \n", statInfos.RspTime)
// fmt.Printf("stats- %s \n", statInfos.ClientIp)
// fmt.Printf("stats- %s \n", statInfos.DevInfo)
// fmt.Printf("stats- %s \n", statInfos.OsInfo)
// fmt.Printf("stats- %s \n", statInfos.NwInfo)
// fmt.Printf("stats- %s \n", statInfos.SvcName)
// fmt.Printf("stats- %s \n", statInfos.DevModel)
// fmt.Printf("stats- %s \n", statInfos.CarrierType)
// fmt.Printf("stats- %s \n", statInfos.HostName)
// fmt.Printf("stats- %s \n", statInfos.ScnName)
// fmt.Printf("stats- %s \n", statInfos.CallId)
// fmt.Printf("stats- %s \n", statInfos.TrId)
// fmt.Printf("stats- %s \n", statInfos.ConcCall)
// fmt.Printf("stats- %s \n", statInfos.SvcType)
// fmt.Printf("stats- %s \n", statInfos.SvcReqTime)
// fmt.Printf("stats- %s \n", statInfos.SvcRspTime)
// fmt.Printf("stats- %s \n", statInfos.TransferNo)
// fmt.Printf("stats- %s \n", statInfos.CallTime)
// fmt.Printf("stats- %s \n", statInfos.CallType)
// fmt.Printf("stats- %s \n", statInfos.FunName)
// fmt.Printf("stats- %s \n", statInfos.ResultMsg)
// fmt.Printf("stats- %s \n", statInfos.SttText)
// fmt.Printf("stats- %s \n", statInfos.TtsText)
}
// }
}
func StatsCommandVA(t *icsnet.IcsTCPNet, bufend string) {
l := icslog.GetIcsLog()
conf := icsconf.GetIcsConfig()
statInfos := new(StatInfos)
s := GetIcsSid()
randNum := fmt.Sprintf("%d4", rand.Intn(9999))
// defer func() {
// if err := recover(); err != nil {
// l.Printf(icslog.LOG_LEVEL_WARN, -1, "%s\n",
// icserror.ICSERRNETNotConnectError.GetMessage())
// if t != nil {
// t.Close()
// }
// return
// }
// }()
defer t.Close()
// l.Printf(icslog.LOG_LEVEL_INFO, -1, "Connected from - %s", t.RemoteAddr())
// for {
statReads, rlen, rerr := t.ReadS(10137, bufend) // 여기서 전체 몇 byte씩 읽어서 로그를 찍을건지 알아야함
if rerr != nil {
if rerr.GetError() != io.EOF {
// l.Printf(icslog.LOG_LEVEL_ERROR, -1, "[Stat Command] ReadS Error! - %s[%d:%d]",
// rerr.GetError(), rlen, len(statReads))
return
}
} else {
@ -289,68 +276,69 @@ func StatsCommandVA(t *icsnet.IcsTCPNet, bufend string) {
svc := statInfos.SvcType[0:1]
seqId := s.Seq + svc + randNum
hostName := conf.InfoConfig.HostName
insLog := ""
insLog += fmt.Sprintf("seqId:%s", seqId)
insLog += fmt.Sprintf("LogTime:%s, ", statInfos.LogTime)
insLog += fmt.Sprintf("LogType:%s, ", statInfos.LogType)
insLog += fmt.Sprintf("Sid:%s, ", statInfos.Sid)
insLog += fmt.Sprintf("ResultCode:%s, ", statInfos.ResultCode)
insLog += fmt.Sprintf("ReqTime:%s, ", statInfos.ReqTime)
insLog += fmt.Sprintf("RspTime:%s, ", statInfos.RspTime)
insLog += fmt.Sprintf("ClientIp:%s, ", statInfos.ClientIp)
insLog += fmt.Sprintf("DevInfo:%s, ", statInfos.DevInfo)
insLog += fmt.Sprintf("OsInfo:%s, ", statInfos.OsInfo)
insLog += fmt.Sprintf("NwInfo:%s, ", statInfos.NwInfo)
insLog += fmt.Sprintf("SvcName:%s, ", statInfos.SvcName)
insLog += fmt.Sprintf("DevModel:%s, ", statInfos.DevModel)
insLog += fmt.Sprintf("CarrierType:%s, ", statInfos.CarrierType)
insLog += fmt.Sprintf("HostName:%s, ", statInfos.HostName)
insLog += fmt.Sprintf("ScnName:%s, ", statInfos.ScnName)
insLog += fmt.Sprintf("CallId:%s, ", statInfos.CallId)
insLog += fmt.Sprintf("TrId:%s, ", statInfos.TrId)
insLog += fmt.Sprintf("ConcCall:%s, ", statInfos.ConcCall)
insLog += fmt.Sprintf("SvcType:%s, ", statInfos.SvcType)
insLog += fmt.Sprintf("SvcReqTime:%s, ", statInfos.SvcReqTime)
insLog += fmt.Sprintf("SvcRspTime:%s, ", statInfos.SvcRspTime)
insLog += fmt.Sprintf("TransferNo:%s, ", statInfos.TransferNo)
insLog += fmt.Sprintf("CallTime:%s, ", statInfos.CallTime)
insLog += fmt.Sprintf("CallType:%s, ", statInfos.CallType)
insLog += fmt.Sprintf("FunName:%s, ", statInfos.FunName)
insLog += fmt.Sprintf("ResultMsg:%s, ", statInfos.ResultMsg)
insLog += fmt.Sprintf("SttText:%s, ", statInfos.SttText)
insLog += fmt.Sprintf("TtsText:%s\n", statInfos.TtsText)
insLog += fmt.Sprintf("SEQ_ID=%s|", seqId)
insLog += fmt.Sprintf("LOG_TIME=%s|", statInfos.LogTime)
insLog += fmt.Sprintf("LOG_TYPE=%s|", statInfos.LogType)
insLog += fmt.Sprintf("SID=%s|", statInfos.Sid)
insLog += fmt.Sprintf("RESULT_CODE=%s|", statInfos.ResultCode)
insLog += fmt.Sprintf("REQ_TIME=%s|", statInfos.ReqTime)
insLog += fmt.Sprintf("RSP_TIME=%s|", statInfos.RspTime)
insLog += fmt.Sprintf("CLIENT_IP=%s|", statInfos.ClientIp)
insLog += fmt.Sprintf("DEV_INFO=%s|", statInfos.DevInfo)
insLog += fmt.Sprintf("OS_INFO=%s|", statInfos.OsInfo)
insLog += fmt.Sprintf("NW_INFO=%s|", statInfos.NwInfo)
insLog += fmt.Sprintf("SVC_NAME=%s|", statInfos.SvcName)
insLog += fmt.Sprintf("DEV_MODEL=%s|", statInfos.DevModel)
insLog += fmt.Sprintf("CARRIER_TYPE=%s|", statInfos.CarrierType)
insLog += fmt.Sprintf("HOST_NAME=%s|", hostName)
insLog += fmt.Sprintf("SCN_NAME=%s|", statInfos.ScnName)
insLog += fmt.Sprintf("CALL_ID=%s|", statInfos.CallId)
insLog += fmt.Sprintf("TR_ID=%s|", statInfos.TrId)
insLog += fmt.Sprintf("CONC_CALL=%s|", statInfos.ConcCall)
insLog += fmt.Sprintf("SVC_TYPE=%s|", statInfos.SvcType)
insLog += fmt.Sprintf("SVC_REQ_TIME=%s|", statInfos.SvcReqTime)
insLog += fmt.Sprintf("SVC_RSP_TIME=%s|", statInfos.SvcRspTime)
insLog += fmt.Sprintf("TRANSFER_NO=%s|", statInfos.TransferNo)
insLog += fmt.Sprintf("CALL_TIME=%s|", statInfos.CallTime)
insLog += fmt.Sprintf("CALL_TYPE=%s|", statInfos.CallType)
insLog += fmt.Sprintf("FUN_NAME=%s|", statInfos.FunName)
insLog += fmt.Sprintf("RESULT_MSG=%s|", statInfos.ResultMsg)
insLog += fmt.Sprintf("STT_TEXT=%s|", statInfos.SttText)
insLog += fmt.Sprintf("TTS_TEXT=%s", statInfos.TtsText)
l.Printf(icslog.LOG_LEVEL_INFO, -1, "%s", insLog)
fmt.Printf("stats- %s \n", statInfos.SeqId)
fmt.Printf("stats- %s \n", statInfos.LogTime)
fmt.Printf("stats- %s \n", statInfos.LogType)
fmt.Printf("stats- %s \n", statInfos.Sid)
fmt.Printf("stats- %s \n", statInfos.ResultCode)
fmt.Printf("stats- %s \n", statInfos.ReqTime)
fmt.Printf("stats- %s \n", statInfos.RspTime)
fmt.Printf("stats- %s \n", statInfos.ClientIp)
fmt.Printf("stats- %s \n", statInfos.DevInfo)
fmt.Printf("stats- %s \n", statInfos.OsInfo)
fmt.Printf("stats- %s \n", statInfos.NwInfo)
fmt.Printf("stats- %s \n", statInfos.SvcName)
fmt.Printf("stats- %s \n", statInfos.DevModel)
fmt.Printf("stats- %s \n", statInfos.CarrierType)
fmt.Printf("stats- %s \n", statInfos.HostName)
fmt.Printf("stats- %s \n", statInfos.ScnName)
fmt.Printf("stats- %s \n", statInfos.CallId)
fmt.Printf("stats- %s \n", statInfos.TrId)
fmt.Printf("stats- %s \n", statInfos.ConcCall)
fmt.Printf("stats- %s \n", statInfos.SvcType)
fmt.Printf("stats- %s \n", statInfos.SvcReqTime)
fmt.Printf("stats- %s \n", statInfos.SvcRspTime)
fmt.Printf("stats- %s \n", statInfos.TransferNo)
fmt.Printf("stats- %s \n", statInfos.CallTime)
fmt.Printf("stats- %s \n", statInfos.CallType)
fmt.Printf("stats- %s \n", statInfos.FunName)
fmt.Printf("stats- %s \n", statInfos.ResultMsg)
fmt.Printf("stats- %s \n", statInfos.SttText)
fmt.Printf("stats- %s \n", statInfos.TtsText)
// fmt.Printf("stats- %s \n", statInfos.SeqId)
// fmt.Printf("stats- %s \n", statInfos.LogTime)
// fmt.Printf("stats- %s \n", statInfos.LogType)
// fmt.Printf("stats- %s \n", statInfos.Sid)
// fmt.Printf("stats- %s \n", statInfos.ResultCode)
// fmt.Printf("stats- %s \n", statInfos.ReqTime)
// fmt.Printf("stats- %s \n", statInfos.RspTime)
// fmt.Printf("stats- %s \n", statInfos.ClientIp)
// fmt.Printf("stats- %s \n", statInfos.DevInfo)
// fmt.Printf("stats- %s \n", statInfos.OsInfo)
// fmt.Printf("stats- %s \n", statInfos.NwInfo)
// fmt.Printf("stats- %s \n", statInfos.SvcName)
// fmt.Printf("stats- %s \n", statInfos.DevModel)
// fmt.Printf("stats- %s \n", statInfos.CarrierType)
// fmt.Printf("stats- %s \n", statInfos.HostName)
// fmt.Printf("stats- %s \n", statInfos.ScnName)
// fmt.Printf("stats- %s \n", statInfos.CallId)
// fmt.Printf("stats- %s \n", statInfos.TrId)
// fmt.Printf("stats- %s \n", statInfos.ConcCall)
// fmt.Printf("stats- %s \n", statInfos.SvcType)
// fmt.Printf("stats- %s \n", statInfos.SvcReqTime)
// fmt.Printf("stats- %s \n", statInfos.SvcRspTime)
// fmt.Printf("stats- %s \n", statInfos.TransferNo)
// fmt.Printf("stats- %s \n", statInfos.CallTime)
// fmt.Printf("stats- %s \n", statInfos.CallType)
// fmt.Printf("stats- %s \n", statInfos.FunName)
// fmt.Printf("stats- %s \n", statInfos.ResultMsg)
// fmt.Printf("stats- %s \n", statInfos.SttText)
// fmt.Printf("stats- %s \n", statInfos.TtsText)
}
// }
}

@ -234,7 +234,6 @@ func (s IcsService) LogWatcher() *icserror.IcsError {
icserror.ICSERRMakeDir.PrintWithCaller(0)
return icserror.ICSERRMakeDir
}
fmt.Println("mkdir success")
s.log.LogFile, oerr = os.OpenFile(s.log.LogFileName, os.O_RDWR|os.O_CREATE|os.O_APPEND, 0777)
if oerr != nil {
@ -246,17 +245,6 @@ func (s IcsService) LogWatcher() *icserror.IcsError {
}
}
// 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, 0777)
// if oerr != nil {
// icserror.ICSERRFileOpen.SetError(oerr)
// //icserror.ICSERRFileOpen.PrintWithCaller(1)
// s.log.M.Unlock()
// return icserror.ICSERRFileOpen
// }
s.log.M.Unlock()
// l.Printf(icslog.LOG_LEVEL_INFO, -1, "Log Watcher: Updated Log File - %s", s.log.LogFileName)
}

Loading…
Cancel
Save