by Robin at 20241210
This commit is contained in:
parent
5fd6bec4bc
commit
18b474ac5f
|
@ -40,7 +40,7 @@ func (s *CronService) Init(c any) (exec xxl.Executor, err error) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
s.fileAbsPath = cfg.Log.FileAbsPath
|
s.fileAbsPath = cfg.Log.BusiFileAbsPath
|
||||||
s.serverConnInfos = make([]*ServerConnInfo, 0)
|
s.serverConnInfos = make([]*ServerConnInfo, 0)
|
||||||
ips := strings.Split(cfg.ServerInfo.MainServerIps, " ")
|
ips := strings.Split(cfg.ServerInfo.MainServerIps, " ")
|
||||||
ports := strings.Split(cfg.ServerInfo.MainServerPorts, " ")
|
ports := strings.Split(cfg.ServerInfo.MainServerPorts, " ")
|
||||||
|
|
|
@ -4,6 +4,7 @@ log:
|
||||||
file_enable: true
|
file_enable: true
|
||||||
file_level: "info"
|
file_level: "info"
|
||||||
file_abs_path: "/app/ironfan/log/mix-offline/"
|
file_abs_path: "/app/ironfan/log/mix-offline/"
|
||||||
|
busi_file_abs_path: "/app/ironfan/log/mix/"
|
||||||
|
|
||||||
app:
|
app:
|
||||||
app_name: "offline-server"
|
app_name: "offline-server"
|
||||||
|
@ -204,4 +205,4 @@ zthy:
|
||||||
username: "XYDLhy"
|
username: "XYDLhy"
|
||||||
password: "e76f4c5afa1d431b20e8856f6c5a08da"
|
password: "e76f4c5afa1d431b20e8856f6c5a08da"
|
||||||
signature: "【铁粉空间】"
|
signature: "【铁粉空间】"
|
||||||
tpId: "157478"
|
tpId: "157478"
|
||||||
|
|
|
@ -4,6 +4,7 @@ log:
|
||||||
file_enable: true
|
file_enable: true
|
||||||
file_level: "info"
|
file_level: "info"
|
||||||
file_abs_path: "/app/ironfan/log/mix/"
|
file_abs_path: "/app/ironfan/log/mix/"
|
||||||
|
busi_file_abs_path: "/app/ironfan/log/mix/"
|
||||||
|
|
||||||
app:
|
app:
|
||||||
app_name: "mix"
|
app_name: "mix"
|
||||||
|
|
|
@ -4,6 +4,7 @@ log:
|
||||||
file_enable: true
|
file_enable: true
|
||||||
file_level: "trace"
|
file_level: "trace"
|
||||||
file_abs_path: "/app/ironfan/log/mix-test/"
|
file_abs_path: "/app/ironfan/log/mix-test/"
|
||||||
|
busi_file_abs_path: "/app/ironfan/log/mix/"
|
||||||
|
|
||||||
app:
|
app:
|
||||||
app_name: "offline-server"
|
app_name: "offline-server"
|
||||||
|
|
|
@ -4,6 +4,7 @@ log:
|
||||||
file_enable: true
|
file_enable: true
|
||||||
file_level: "trace"
|
file_level: "trace"
|
||||||
file_abs_path: "/app/ironfan/log/mix-test/"
|
file_abs_path: "/app/ironfan/log/mix-test/"
|
||||||
|
busi_file_abs_path: "/app/ironfan/log/mix/"
|
||||||
|
|
||||||
app:
|
app:
|
||||||
app_name: "mix-test"
|
app_name: "mix-test"
|
||||||
|
|
|
@ -19,9 +19,10 @@ type LoggerConfig struct {
|
||||||
StdoutEnable bool `json:"stdout_enable" yaml:"stdout_enable"` // 是否允许控制台输出
|
StdoutEnable bool `json:"stdout_enable" yaml:"stdout_enable"` // 是否允许控制台输出
|
||||||
StdoutLevel string `json:"stdout_level" yaml:"stdout_level"` // 控制台输出日志等级
|
StdoutLevel string `json:"stdout_level" yaml:"stdout_level"` // 控制台输出日志等级
|
||||||
|
|
||||||
FileEnable bool `json:"file_enable" yaml:"file_enable"` // 是否允许写文件
|
FileEnable bool `json:"file_enable" yaml:"file_enable"` // 是否允许写文件
|
||||||
FileLevel string `json:"file_level" yaml:"file_level"` // 文件输出日志等级
|
FileLevel string `json:"file_level" yaml:"file_level"` // 文件输出日志等级
|
||||||
FileAbsPath string `json:"file_abs_path" yaml:"file_abs_path"` // 日志文件绝对路径
|
FileAbsPath string `json:"file_abs_path" yaml:"file_abs_path"` // 日志文件绝对路径
|
||||||
|
BusiFileAbsPath string `json:"busi_file_abs_path" yaml:"busi_file_abs_path"` // 业务服务器日志文件绝对路径
|
||||||
}
|
}
|
||||||
|
|
||||||
// 服务配置
|
// 服务配置
|
||||||
|
|
Loading…
Reference in New Issue