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