This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Doric/doric-Qt/doric/engine/DoricNativeLog.cpp
2021-05-20 18:27:45 +08:00

14 lines
290 B
C++

#include <QDebug>
#include "DoricNativeLog.h"
Q_INVOKABLE void DoricNativeLog::function(QString level, QString content) {
if (level == 'w') {
qWarning() << content;
} else if (level == 'd') {
qDebug() << content;
} else if (level == 'e') {
qCritical() << content;
}
}