QLogger
Loading...
Searching...
No Matches
logentry.h
1#ifndef QLOGGER_LOGENTRY_H
2#define QLOGGER_LOGENTRY_H
3
4#include "qlogger/qloggerglobal.h"
5
6#include <QFileInfo>
7#include <QMessageLogContext>
8
9namespace QLogger
10{
11
12class QLOGGER_EXPORT LogEntry
13{
14
15public:
16 explicit LogEntry(QtMsgType idType, const QMessageLogContext &context, const QString &msg);
17
18public:
19 QtMsgType getType() const;
20 QString getTypeString() const;
21
22 bool contextIsAvailable() const;
23 const QFileInfo& getCtxFile() const;
24 int getCtxLine() const;
25 const QString& getCtxFctSig() const;
26 QString getCtxFctName() const;
27
28 const QString& getMsg() const;
29
30private:
31 QtMsgType m_idType;
32 QString m_msg;
33
34 bool m_haveContext;
35 QFileInfo m_ctxFile;
36 int m_ctxLine;
37 QString m_ctxFctSig;
38};
39
40} // Namespace QLogger
41
42#endif // QLOGGER_LOGENTRY_H
Used to store all log entry informations.
Definition logentry.h:13