|
|
@ -152,7 +152,7 @@ func NewIcsLog(conf *icsconf.LogConfig, level int, output int, path string, disk
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fmt.Println("mkdir success")
|
|
|
|
fmt.Println("mkdir success")
|
|
|
|
|
|
|
|
|
|
|
|
gIcsLog.LogFile, oerr = os.OpenFile(gIcsLog.LogFileName, os.O_RDWR|os.O_CREATE|os.O_APPEND, 0777)
|
|
|
|
gIcsLog.LogFile, oerr = os.OpenFile(gIcsLog.LogFileName, os.O_RDWR|os.O_CREATE|os.O_APPEND, 0666)
|
|
|
|
if oerr != nil {
|
|
|
|
if oerr != nil {
|
|
|
|
//fmt.Println(gIcsLog.LogFileName)
|
|
|
|
//fmt.Println(gIcsLog.LogFileName)
|
|
|
|
icserror.ICSERRFileOpen.SetError(oerr)
|
|
|
|
icserror.ICSERRFileOpen.SetError(oerr)
|
|
|
@ -170,7 +170,7 @@ func NewIcsLog(conf *icsconf.LogConfig, level int, output int, path string, disk
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
gIcsLog.LogFile, oerr = os.OpenFile(gIcsLog.LogFileName, os.O_RDWR|os.O_CREATE|os.O_APPEND, 0777)
|
|
|
|
gIcsLog.LogFile, oerr = os.OpenFile(gIcsLog.LogFileName, os.O_RDWR|os.O_CREATE|os.O_APPEND, 0666)
|
|
|
|
if oerr != nil {
|
|
|
|
if oerr != nil {
|
|
|
|
//fmt.Println(gIcsLog.LogFileName)
|
|
|
|
//fmt.Println(gIcsLog.LogFileName)
|
|
|
|
icserror.ICSERRFileOpen.SetError(oerr)
|
|
|
|
icserror.ICSERRFileOpen.SetError(oerr)
|
|
|
@ -190,7 +190,7 @@ func NewIcsLog(conf *icsconf.LogConfig, level int, output int, path string, disk
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fmt.Println("mkdir success")
|
|
|
|
fmt.Println("mkdir success")
|
|
|
|
|
|
|
|
|
|
|
|
gIcsLog.LogFile, oerr = os.OpenFile(gIcsLog.LogFileName, os.O_RDWR|os.O_CREATE|os.O_APPEND, 0777)
|
|
|
|
gIcsLog.LogFile, oerr = os.OpenFile(gIcsLog.LogFileName, os.O_RDWR|os.O_CREATE|os.O_APPEND, 0666)
|
|
|
|
if oerr != nil {
|
|
|
|
if oerr != nil {
|
|
|
|
//fmt.Println(gIcsLog.LogFileName)
|
|
|
|
//fmt.Println(gIcsLog.LogFileName)
|
|
|
|
icserror.ICSERRFileOpen.SetError(oerr)
|
|
|
|
icserror.ICSERRFileOpen.SetError(oerr)
|
|
|
|