+ -
当前位置:首页 → 问答吧 → 求助:用于记录Log日志的常用的c/c++类库有哪些?

求助:用于记录Log日志的常用的c/c++类库有哪些?

时间:2011-11-28

来源:互联网

一般在程序中都会有专门的一个类或库来实现记录程序中的Log,以便于查看出现的异常情况,常用的c/c++类库都有哪些呢?
望高手指点,谢谢!

作者: fengbingchun   发布时间: 2011-11-28

log4cplus

作者: ddlddy   发布时间: 2011-11-28

1. http://logging.apache.org/log4cxx/index.html

2. Actually, at least since VC++2005 TRACE (and ATLTRACE) macro has
this ability. You can differentiate log categories and log levels.
Also, you can control the tracing during run-time with ATL/MFC
Trace Tool:

http://msdn.microsoft.com/en-us/library/khbh432d(VS.80).aspx

3. http://sourceforge.net/projects/templog.

作者: oyljerry   发布时间: 2011-11-28

引用 1 楼 ddlddy 的回复:
log4cplus


谢谢!

作者: fengbingchun   发布时间: 2011-11-28

引用 2 楼 oyljerry 的回复:
1. http://logging.apache.org/log4cxx/index.html

2. Actually, at least since VC++2005 TRACE (and ATLTRACE) macro has
this ability. You can differentiate log categories and log levels.
Also, you ca……


谢谢!

作者: fengbingchun   发布时间: 2011-11-28

http://sourceforge.net/projects/log4cplus/files/latest/download

作者: shen_wei   发布时间: 2011-11-28

X,好高级 必须mark,以后就不用自己写file了

作者: kemee   发布时间: 2011-11-28

log4c~

作者: VisualEleven   发布时间: 2011-11-28

引用 1 楼 ddlddy 的回复:
log4cplus

目前还是不错的~

作者: wangweixu520   发布时间: 2011-11-28

log4c,学习了
我一般用这个写日志
sprintf(szLog,"File:%s,Function:%s;Line:%s",__FILE__,__FUNCTION__,__LINE__);

作者: hpf976149   发布时间: 2011-11-28