接入阿里sls, 增加关闭日志通道

This commit is contained in:
liangzy 2020-05-06 11:22:19 +08:00
parent 1d9b78eb37
commit 01c35869b8

2
log.go
View File

@ -81,7 +81,7 @@ func GetAli(label string, channelLens ...int64) (l *Logger) {
} }
if l, loaded = New(label, channelLens...); !loaded { if l, loaded = New(label, channelLens...); !loaded {
l.SetAdapter(LevelAll, AdapterConsole).SetAdapter(filelevel, AdapterAliLs) l.SetAdapter(LevelAll, AdapterConsole).SetAdapter(filelevel, AdapterFile).SetAdapter(filelevel, AdapterAliLs)
} }
return return
} }