我的代码中有一条基本的调试消息,用于打印有关调用什么函数的消息。
#ifdef _DEBUG std::clog << "message etc" << std::endl; #endif
如何重定向输出以将消息发送到文本文件?
c++ debugging logging file output
c++ ×1
debugging ×1
file ×1
logging ×1
output ×1