Files
ssp/services/logservice.h
T
2026-08-18 09:40:43 +08:00

21 lines
465 B
C++

#ifndef LOGSERVICE_H
#define LOGSERVICE_H
#include <QString>
class LogService
{
public:
static LogService &instance();
bool record(const QString &type, const QString &module, const QString &action,
const QString &content, const QString &status, QString *error = nullptr);
private:
LogService() = default;
LogService(const LogService &) = delete;
LogService &operator=(const LogService &) = delete;
};
#endif // LOGSERVICE_H