接入阿里sls, 增加关闭日志通道
This commit is contained in:
parent
1d9b78eb37
commit
01c35869b8
2
log.go
2
log.go
@ -81,7 +81,7 @@ func GetAli(label string, channelLens ...int64) (l *Logger) {
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user