golang 一些不错的log 包

日常开发中log 是一个不能缺少的组件,以下整理了一些不错的log组件

  • Sirupsen/logrus 
    功能强大,使用比较多的一个,同时提供了灵活的扩展点
  • gogap/logrus_mate 
    logrus 的包装,提供了一些方便的扩展
  • uber-go/zap 
    uber的,使用用户挺多的,而且比较强大
  • rs/zerolog

说明

以上是整理的一些不错的,实际上我们也可以通过awesome-go查找一些自己需要的包(很方便)

参考资料

https://github.com/gogap/logrus_mate 
https://github.com/Sirupsen/logrus 
https://github.com/uber-go/zap 
https://github.com/rs/zerolog 
https://github.com/avelino/awesome-go

posted on 2020-11-22 23:29  荣锋亮  阅读(595)  评论(0编辑  收藏  举报

导航