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/example/doric/engine/DoricNativeLog.cpp

14 lines
290 B
C++
Raw Normal View History

2021-02-04 16:59:58 +08:00
#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;
}
}