ws logger 更改为全局注册

This commit is contained in:
2024-07-23 15:38:23 +08:00
parent dab0b5e0b9
commit d978913b67
3 changed files with 38 additions and 34 deletions

View File

@ -237,17 +237,6 @@ type OptionLogger struct {
// SetLoggerOptionFunc 设置日志配置
type SetLoggerOptionFunc func(o *OptionLogger)
// WithWsLogger 设置ws管理实例
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 22:11 2024/7/22
func WithWsLogger(connect storage.IConnection) SetLoggerOptionFunc {
return func(o *OptionLogger) {
o.WsLoggerConnect = connect
}
}
// WithCaller 打开文件行号记录
func WithCaller() SetLoggerOptionFunc {
return func(o *OptionLogger) {