Browse Source

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

tags/v1.3.0
liangzy 4 years ago
parent
commit
01c35869b8
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      log.go

+ 1
- 1
log.go View File

@@ -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…
Cancel
Save