first version of embedded test stand done

This commit is contained in:
2026-05-18 15:21:18 +03:00
commit 6179eb954a
35 changed files with 2042 additions and 0 deletions

39
src/core/logger.h Normal file
View File

@@ -0,0 +1,39 @@
#ifndef LOGGER_H
#define LOGGER_H
#include "protocol_handler.h"
class ProtocolHandler;
class QJsonObject;
class Logger
{
public:
static void saveTestLog(
const QString& filename,
const ProtocolHandler& handler,
const QJsonObject& cfg,
bool passed,
const QString& error = "");
static void appendSummary(
const QString& filename,
int total,
int passed,
int failed);
static void setupLog();
static void writeStandLog(QtMsgType type, const QMessageLogContext &context,
const QString &msg);
static void writeToConsol(QString msg);
private:
static void write(
const QString& file,
const QString& text);
};
#endif // LOGGER_H