16 Star 61 Fork 23

DiDi-opensource/falcon-log-agent

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
multi.go 368 Bytes
一键复制 编辑 原始数据 按行查看 历史
gaojiasheng 提交于 2018-08-07 13:58 . update go dependences
package dlog
type multiBackend struct {
bes []Backend
}
func NewMultiBackend(bes ...Backend) (*multiBackend, error) {
var b multiBackend
b.bes = bes
return &b, nil
}
func (self *multiBackend) Log(s Severity, msg []byte) {
for _, be := range self.bes {
be.Log(s, msg)
}
}
func (self *multiBackend) close() {
for _, be := range self.bes {
be.close()
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/didiopensource/falcon-log-agent.git
git@gitee.com:didiopensource/falcon-log-agent.git
didiopensource
falcon-log-agent
falcon-log-agent
542bf9e4eb8b

搜索帮助

D67c1975 1850385 1daf7b77 1850385