SDRAngel  4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
logmessage.h
Go to the documentation of this file.
1 
6 #ifndef LOGMESSAGE_H
7 #define LOGMESSAGE_H
8 
9 #include <QtGlobal>
10 #include <QDateTime>
11 #include <QHash>
12 #include "logglobal.h"
13 
14 #include "export.h"
15 
16 namespace qtwebapp {
17 
39 {
40  Q_DISABLE_COPY(LogMessage)
41 public:
42 
53  LogMessage(const QtMsgType type, const QString& message, QHash<QString,QString>* logVars, const QString &file, const QString &function, const int line);
54 
62  QString toString(const QString& msgFormat, const QString& timestampFormat) const;
63 
67  QtMsgType getType() const;
68 
69 private:
70 
72  QHash<QString,QString> logVars;
73 
75  QDateTime timestamp;
76 
78  QtMsgType type;
79 
81  Qt::HANDLE threadId;
82 
84  QString message;
85 
87  QString file;
88 
90  QString function;
91 
93  int line;
94 
95 };
96 
97 } // end of namespace
98 
99 #endif // LOGMESSAGE_H
QHash< QString, QString > logVars
Definition: logmessage.h:72
Qt::HANDLE threadId
Definition: logmessage.h:81
QDateTime timestamp
Definition: logmessage.h:75
#define LOGGING_API
Definition: export.h:100