21 lines
465 B
C++
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
|