14 lines
301 B
C++
14 lines
301 B
C++
#include <QDebug>
|
|
|
|
#include "native_log.h"
|
|
|
|
Q_INVOKABLE void NativeLog::function(QString level, QString content) {
|
|
if (level == 'w') {
|
|
qWarning() << content;
|
|
} else if (level == 'd') {
|
|
qDebug() << content;
|
|
} else if (level == 'e') {
|
|
qCritical() << content;
|
|
}
|
|
}
|