C++日志程序库 RLog
- 授权协议: LGPL
- 开发语言: C/C++
- 操作系统: Windows
- 软件首页: http://code.google.com/p/rlog/
- 软件文档: http://www.arg0.net/rlog
软件介绍
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));
}
JavaScript基础教程
Tom Negrino、Dori Smith / 陈剑瓯 / 人民邮电出版社 / 2007-9 / 45.00元
《JavaScript基础教程》(第6版)循序渐进地讲述了JavaScript 及相关的CSS、DOM与Ajax 等技术。书中从JavaScript 语言基础开始,分别讨论了图像、框架、浏览器窗口、表单、正则表达式、用户事件和cookie,还有两章讲述了Ajax 基础。《JavaScript基础教程》(第6版)不仅有对于基础知识和使用方法的介绍,也包含了对JavaScript 应用示例的深入探讨。一起来看看 《JavaScript基础教程》 这本书的介绍吧!
