You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
golog/api_slog_config.go

21 lines
428 B

5 months ago
package golog
// ConfigSLogClientFun 日志配置
5 months ago
func (al *ApiSLog) ConfigSLogClientFun(sLogFun SLogFun) {
5 months ago
sLog := sLogFun()
if sLog != nil {
5 months ago
al.slog.client = sLog
al.slog.status = true
5 months ago
}
}
// ConfigSLogResultClientFun 日志配置然后返回
5 months ago
func (al *ApiSLog) ConfigSLogResultClientFun(sLogFun SLogFun) *ApiSLog {
5 months ago
sLog := sLogFun()
if sLog != nil {
5 months ago
al.slog.client = sLog
al.slog.status = true
5 months ago
}
5 months ago
return al
5 months ago
}