Merge pull request #8497 from nextcloud/xcode-console-logging

Enable Log Output in Xcode Console
This commit is contained in:
Iva Horn 2025-08-04 12:19:27 +02:00 committed by GitHub
commit e1070b9e02
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -117,7 +117,12 @@ void Logger::doLog(QtMsgType type, const QMessageLogContext &ctx, const QString
// write logs to Output window of Visual Studio
{
const auto msgW = QStringLiteral("%1\n").arg(msg).toStdWString();
OutputDebugString(msgW.c_str());
OutputDebugString(msgW.c());
}
#elif defined Q_OS_MAC && defined QT_DEBUG
// write logs to Xcode console (stderr)
{
std::cerr << msg.toStdString() << std::endl;
}
#endif
{