RLogC++日志程序库
RLog是一个灵活的C++日志程序库。RLog高度优化了不用实际输出Log信息的分支,因此RLog可以留在发布产品中,并可以按需开启输出。
示例代码:
// create custom logging channel (part of debug hierarchy) // Any subscriber to 'debug' will also pick up this sub channel, // or it can be subscribed to directly. static RLogChannel *timeChannel = DEF_CHANNEL("debug/timeStamp", Log_Debug); void func(int foo) { // log to the 'debug' channel rDebug("foo = %i", foo); int ans = 6 * 9; if(ans != 42) rWarning("ans = %i, expecting 42", ans); // log to warning channel // log to error channel rError("I'm sorry %s, I can't do that (error code %i)", name, errno); // log to custom channel // Note: time() never gets called unless there are subscribers to this message rLog(timeChannel, "the time is now %i", (int)time(NULL)); }
评论
AndroidCommonAndroid 程序库
AndroidCommon包含一组开发Android程序常用的库。主要包括:缓存(图片缓存,预取缓存,网络缓存),公共视图(拖动和底部加载更多ListView,底部加载更多ScrollView,滑动页
AndroidCommonAndroid 程序库
0
Netwib网络程序库
Netwib是一款为网管和hacker设计的网络程序库,使用它可以非常容易的创建网络程序。这个库支持IP、UDP、TCP、ICMP、ARP和RARP协议。可以非常容易的创建欺骗、嗅探,客户端和服务端程
Netwib网络程序库
0
Murano-AppsMurano 应用程序库
Murano-Apps是Murano应用程序库,它包括了Murano应用程序包源代码。目前所有的应用程序都能在安装了murano-agent的UbuntuTrusty上工作,其他的Ubuntu版本还没
Murano-AppsMurano 应用程序库
0
LibUC语言程序库
LibU是一个支持多平台的C语言程序库,包含很多独立的模块,例如:内存分配、网络和URI解析、字符串处理、调试和日志记录,LibU是一个很小的库,差不多只有70K左右。这是一个模块化的,支持多平台,包
LibUC语言程序库
0