小编Jam*_*ing的帖子

将源中的 std::clog 移动到输出文件

我的代码中有一条基本的调试消息,用于打印有关调用什么函数的消息。

#ifdef _DEBUG
     std::clog << "message etc" << std::endl;
#endif
Run Code Online (Sandbox Code Playgroud)

如何重定向输出以将消息发送到文本文件?

c++ debugging logging file output

2
推荐指数
1
解决办法
4165
查看次数

标签 统计

c++ ×1

debugging ×1

file ×1

logging ×1

output ×1