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.
21 lines
428 B
21 lines
428 B
package golog
|
|
|
|
// ConfigSLogClientFun 日志配置
|
|
func (gl *GinSLog) ConfigSLogClientFun(sLogFun SLogFun) {
|
|
sLog := sLogFun()
|
|
if sLog != nil {
|
|
gl.slog.client = sLog
|
|
gl.slog.status = true
|
|
}
|
|
}
|
|
|
|
// ConfigSLogResultClientFun 日志配置然后返回
|
|
func (gl *GinSLog) ConfigSLogResultClientFun(sLogFun SLogFun) *GinSLog {
|
|
sLog := sLogFun()
|
|
if sLog != nil {
|
|
gl.slog.client = sLog
|
|
gl.slog.status = true
|
|
}
|
|
return gl
|
|
}
|