12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- #include "QsLogDestConsole.h"
- #include <QString>
- #include <QtGlobal>
- #if defined(Q_OS_WIN)
- #define WIN32_LEAN_AND_MEAN
- void QsDebugOutput::output( const QString& message )
- {
- }
- #elif defined(Q_OS_UNIX)
- #include <cstdio>
- void QsDebugOutput::output( const QString& message )
- {
- fprintf(stderr, "%s\n", qPrintable(message));
- fflush(stderr);
- }
- #endif
- void QsLogging::DebugOutputDestination::write(const QString& message, Level)
- {
- QsDebugOutput::output(message);
- }
- bool QsLogging::DebugOutputDestination::isValid()
- {
- return true;
- }
|