first commit

This commit is contained in:
2026-04-29 14:10:10 +08:00
commit b28556d43d
1558 changed files with 241386 additions and 0 deletions
+44
View File
@@ -0,0 +1,44 @@
#ifndef LOGMESSAGE_H
#define LOGMESSAGE_H
#include <QtGlobal>
#include <QDateTime>
#include <QHash>
#include "logglobal.h"
class DECLSPEC LogMessage
{
Q_DISABLE_COPY(LogMessage)
public:
LogMessage(const QtMsgType type, const QString& message, const QHash<QString,QString>* logVars,
const QString &file, const QString &function, const int line);
QString toString(const QString& msgFormat, const QString& timestampFormat) const;
QtMsgType getType() const;
private:
QHash<QString,QString> logVars;
QDateTime timestamp;
QtMsgType type;
Qt::HANDLE threadId;
QString message;
QString file;
QString function;
int line;
};
#endif // LOGMESSAGE_H