Skills for generating debug log file
来源:互联网 发布:亚马逊 推荐算法 编辑:程序博客网 时间:2024/05/19 19:40
Code to generate a log file for debug
in C
FILE* debugFile_p = NULL;
const char* debugFile = "debug.log";
char* errMsg;
debugFile_p = fopen(debugFile, "w");
errMsg = strerror(errno);
fprintf(debugFile_p, errMsg);
fflush(debugFile_p);
fclose(debugFile_p);
in C++
#include <fstream>
std::ofstream debugInfo( "debug.log ", ofstream::ate|ofstream::app);
errMsg = strerror(errno);
debugInfo << errMsg << endl;
- Skills for generating debug log file
- Java debug skills for Eclipse juno 4.2
- Debug Skills
- linux-debug-with log file
- Simple debug log for C++
- Enable Debug log for Requests
- Capture a Debug Log or Trace File and Diagnostics for AutoInvoice
- Android Debug Skills
- Jinja2 example for generating a local file using a template
- Life Skills For Success
- Required Skills for jobs~~~
- awk file del log for c++
- Log file location for Oracle EBS R12
- The log file for database '' is full
- php ajax debug method -- make log in a text file
- How to generate an AR debug log file
- How to generate an AP debug log file
- How to generate an GL debug log file
- sql server连接Oracle方法
- Spring(四)--装配
- Android的资源文件里为什么会有三个drawable?
- UML 基本图速查
- Android如何使Activity全屏
- Skills for generating debug log file
- VC中给多个文件连续命名的技巧
- 一个比较隐蔽的c++释放空间错误
- 前端代码之丑(1):分支化技巧
- c++ 代理类
- 前端代码之丑(2):丑陋的条件语句
- Minutes of TMC#132
- nkoj1851——Get Tools from Doraemon's Pocket
- 转--精选微软经典的算法面试100题(我比较喜欢他说的“享受思考”的说法)