TreeFrogFramework  1.18
tlog.h
Go to the documentation of this file.
1 #ifndef TLOG_H
2 #define TLOG_H
3 
4 #include <QCoreApplication>
5 #include <QDateTime>
6 #include <QByteArray>
7 #include <QDataStream>
8 #include <TGlobal>
9 
10 
12 {
13 public:
14  TLog() { }
15  TLog(int pri, const QByteArray &msg);
16 
17  friend QDataStream &operator<<(QDataStream &out, const TLog &log);
18  friend QDataStream &operator>>(QDataStream &in, TLog &log);
19 
20  QDateTime timestamp;
21  int priority;
22  qint64 pid;
23  qulonglong threadId;
24  QByteArray message;
25 };
26 
27 #endif // TLOG_H
#define T_CORE_EXPORT
Definition: tglobal.h:81
The TLog class contains log messages for web application.
Definition: tlog.h:11
int priority
Priority.
Definition: tlog.h:21
TLog()
Constructor.
Definition: tlog.h:14
QDateTime timestamp
Timestamp.
Definition: tlog.h:20
QDataStream & operator>>(QDataStream &in, TLog &log)
Definition: tlog.cpp:45
QDataStream & operator<<(QDataStream &out, const TLog &log)
Definition: tlog.cpp:38
qint64 pid
PID.
Definition: tlog.h:22
QByteArray message
Message.
Definition: tlog.h:24
qulonglong threadId
Thread ID.
Definition: tlog.h:23