|
|
@ -105,12 +105,12 @@ void ClickableWidget::paintEvent(QPaintEvent *) { |
|
|
|
|
|
|
|
|
|
|
|
void swagLogMessageHandler(QtMsgType type, const QMessageLogContext &context, const QString &msg) { |
|
|
|
void swagLogMessageHandler(QtMsgType type, const QMessageLogContext &context, const QString &msg) { |
|
|
|
static std::map<QtMsgType, int> levels = { |
|
|
|
static std::map<QtMsgType, int> levels = { |
|
|
|
{QtMsgType::QtDebugMsg, 10}, |
|
|
|
{QtMsgType::QtDebugMsg, CLOUDLOG_DEBUG}, |
|
|
|
{QtMsgType::QtInfoMsg, 20}, |
|
|
|
{QtMsgType::QtInfoMsg, CLOUDLOG_INFO}, |
|
|
|
{QtMsgType::QtWarningMsg, 30}, |
|
|
|
{QtMsgType::QtWarningMsg, CLOUDLOG_WARNING}, |
|
|
|
{QtMsgType::QtCriticalMsg, 40}, |
|
|
|
{QtMsgType::QtCriticalMsg, CLOUDLOG_ERROR}, |
|
|
|
{QtMsgType::QtSystemMsg, 40}, |
|
|
|
{QtMsgType::QtSystemMsg, CLOUDLOG_ERROR}, |
|
|
|
{QtMsgType::QtFatalMsg, 50}, |
|
|
|
{QtMsgType::QtFatalMsg, CLOUDLOG_CRITICAL}, |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
std::string file, function; |
|
|
|
std::string file, function; |
|
|
|