1
0
forked from BRT/arc
arc/services/AppLogger.cpp
slava 73e23f437d Add Ozon pay_to_new_number and pay_to_old_number XML assets
Included XML files for the "pay to new number" and "pay to old number" features in the Ozon platform.
2026-03-01 12:02:37 +07:00

18 lines
488 B
C++

#include "AppLogger.h"
#include <QDateTime>
#include "dao/AppLogDAO.h"
#include "db/AppLogEntry.h"
void AppLogger::log(const QString &source, const QString &deviceId,
const QString &message, const QByteArray &screenshot) {
AppLogEntry entry;
entry.source = source;
entry.deviceId = deviceId;
entry.message = message;
entry.screenshot = screenshot;
entry.timestamp = QDateTime::currentDateTimeUtc();
AppLogDAO::insert(entry);
}