首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > C/C++/VC++ > C++在Windows日志模块

C++在Windows日志模块

  • 资源大小:4.90 kB
  • 上传时间:2021-06-29
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: windows 日志 模块

资 源 简 介

"win-logging" provides a C++/Windows logging module similar to python"s logging or Java"s log4j. As the following code shows, it allows you to output debug-string by both naitive C(printf) and C++(std::cout) style. Of course, it supports unicode mode, and has confirmation of warning-free on Visual Studio 2008. printf & std::cout style logger.info("%s %d",argv[0],argc);logger.info << argv[0] << " " << argc << std::endl; Set Level or Configuration logger.setLevel( logger.WARNING );logger.startConfig( "C:\log.txt" ); installation step 1. download & include "logging.h" (1 File) The code for win-logging is substantively in the public domain (MIT Licence is dummy definition for Google Code) and is thus free for use for any purpose.

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
0.322739s