설정파일 수정

main
JungJun 2 years ago
parent bcc45cb3b3
commit b164cada3c

@ -10,7 +10,7 @@ import (
)
type IcsConfig struct {
XMLName xml.Name `xml:"ICSVA"`
XMLName xml.Name `xml:"ICSVB"`
Version string `xml:"version,attr"`
InfoConfig InfoConfig `xml:"INFO"`
LicenseConfig LicenseConfig `xml:"LICENSE"`

@ -130,7 +130,7 @@ func NewIcsLog(conf *icsconf.LogConfig, level int, output int, path string, disk
//make log file - icssoe.log-yyyymmdd
yyyy, mm, dd := gIcsLog.CurrentDate.Date()
gIcsLog.LogFileName = fmt.Sprintf("%s/icsva.log-%d%02d%02d", gIcsLog.Path, yyyy, mm, dd)
gIcsLog.LogFileName = fmt.Sprintf("%s/icsbot.log-%d%02d%02d", gIcsLog.Path, yyyy, mm, dd)
stat, err := os.Stat(gIcsLog.LogFileName)
if err == nil {

@ -197,7 +197,7 @@ func (s IcsService) LogWatcher() *icserror.IcsError {
fmt.Println(m2)
fmt.Println(d2)
*/
s.log.LogFileName = fmt.Sprintf("%s/icsva.log-%d%02d%02d", s.log.Path, y2, m2, d2)
s.log.LogFileName = fmt.Sprintf("%s/icsbot.log-%d%02d%02d", s.log.Path, y2, m2, d2)
var oerr error
s.log.LogFile, oerr = os.OpenFile(s.log.LogFileName, os.O_RDWR|os.O_CREATE|os.O_APPEND, 0666)
if oerr != nil {

@ -20,7 +20,7 @@ func main() {
for _, e := range os.Environ() {
s := strings.SplitN(e, "=", 2)
if strings.Compare(s[0], "ICSVA_ROOT") == 0 {
if strings.Compare(s[0], "ICSVB_ROOT") == 0 {
homeDir = s[1]
//service.SetHomeDir(s[1])
isStop = true
@ -33,7 +33,7 @@ func main() {
}
//configuration
configFile := fmt.Sprintf("%s/config/icsva.xml", homeDir)
configFile := fmt.Sprintf("%s/config/icsbot.xml", homeDir)
//configFile := fmt.Sprintf("%s/config/icsvc.xml", service.GetHomeDir())
//fmt.Println("Config file:", configFile)
conf, confErr := icsconf.OpenConfig(configFile, homeDir)

@ -49,7 +49,7 @@ func main() {
var homeDir string
for _, e := range os.Environ() {
s := strings.SplitN(e, "=", 2)
if strings.Compare(s[0], "ICSVA_ROOT") == 0 {
if strings.Compare(s[0], "ICSVB_ROOT") == 0 {
homeDir = s[1]
//service.SetHomeDir(s[1])
isStop = true

Loading…
Cancel
Save