• 隐藏侧边栏
  • 展开分类目录
  • 关注微信公众号
  • 我的GitHub
  • QQ:1753970025
Chen Jiehua

Seelog CustomReceiver 

Seelog is a powerful and easy-to-learn logging framework that provides functionality for flexible dispatching, filtering, and formatting log messages. It is natively written in the Go programming language.

安装:

例子:

配置文件:

logger.xml

Custome receivers

参考:https://github.com/cihub/seelog/wiki/Custom-receivers
采用seelog.LoggerFromParamConfigAs…,载入xml配置文件以及CfgParseParams.CustomReceiverProducers.
首先定义基本的CustomReceiver类型:

码字很辛苦,转载请注明来自ChenJiehua《Seelog CustomReceiver》

评论