mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Merge pull request #8497 from nextcloud/xcode-console-logging
Enable Log Output in Xcode Console
This commit is contained in:
commit
e1070b9e02
@ -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
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user