c++ - Visual Studio 调试控制台中的 log4cplus 日志

标签 c++ qt log4cplus

如何强制 log4cplus 日志显示在 Visual Studio 2013 调试控制台中?这是 Qt 应用程序,标准的 ConsoleAppender 不写任何东西,RollingFileAppender 工作正常。还有 QtDebugAppender,但它不会写入调试控制台。

最佳答案

尝试使用 Win32DebugAppender .它使用 OutputDebugString()

关于c++ - Visual Studio 调试控制台中的 log4cplus 日志,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34296909/

相关文章:

c++ - 使用 while(!infile.eof()) 好奇如何在 C++ 中的 eof() 之前打破它

c++ - Qt:自定义小部件的多种布局

c++ - fork() 之后 log4cplus 会发生什么?

c++ - 访问 OpenCV GpuMat channel

c++ - 将类型定义的数组分配给另一个数组 (c++)

c++ - Boost Shared Memory - 指针的返回 vector

c++ - QT C++ - QNetworkAccessManager 需要帮助!类(Class)问题

qt - 如何更新 CMake Qt 项目中的 *.ts(用于 Qt Linguist)文件?

java - Eclipse与log4cplus有问题吗?

c++ - log4cplus: ERROR 在默认上下文被销毁后重新初始化默认上下文