From 4d9fef81c949289c0159a969a45e420f516f475f Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Tue, 7 Feb 2023 13:12:51 +0100 Subject: [PATCH] Log to stdout when in debug mode Signed-off-by: Claudio Cambra --- src/libsync/logger.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libsync/logger.cpp b/src/libsync/logger.cpp index 8969550af375f..405266aea584a 100644 --- a/src/libsync/logger.cpp +++ b/src/libsync/logger.cpp @@ -112,6 +112,9 @@ void Logger::doLog(QtMsgType type, const QMessageLogContext &ctx, const QString msgW.append(L"\n"); OutputDebugString(msgW.c_str()); } +#elif defined(QT_DEBUG) + QTextStream cout(stdout, QIODevice::WriteOnly); + cout << msg << endl; #endif { QMutexLocker lock(&_mutex);