split project with app & doric module
This commit is contained in:
13
doric-Qt/example/doric/engine/DoricNativeLog.cpp
Normal file
13
doric-Qt/example/doric/engine/DoricNativeLog.cpp
Normal file
@@ -0,0 +1,13 @@
|
||||
#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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user