c-log 介绍
c-log是一个稳定,高效,多线程安全,易用,简单的C/C++
日志库,在github主页上有丰富的测试case,后续将会推迟直接输出到scribe等集中式日志收集中间件上,帮助用户更好的收集,分析日志
示例代码:
log_init(LL_TRACE, "mysql", "./log/"); log_notice("%s [time:%d]", "test calling log", time(NULL)); log_debug("debug msg,only write to log when the loglevel bigger than or equal to debug [time:%d]", time(NULL)); log_warn("warnning msg will be writing to the error files [time:%d]", time(NULL)); log_error("you also can change number of output files by rewrite the macro_define.h");
c-log 官网
https://github.com/0xmalloc/c-log
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。