TreeFrogFramework  2.8
tlog.h
Go to the documentation of this file.
1 #pragma once
2 #include <QByteArray>
3 #include <QCoreApplication>
4 #include <QDataStream>
5 #include <QDateTime>
6 #include <TGlobal>
7 
8 
10 public:
11  TLog() { }
12  TLog(int pri, const QByteArray &msg, int dur = 0);
13 
14  friend QDataStream &operator<<(QDataStream &out, const TLog &log);
15  friend QDataStream &operator>>(QDataStream &in, TLog &log);
16 
17  QDateTime timestamp;
18  int priority {0};
19  qulonglong pid {0};
20  qulonglong threadId {0};
21  QByteArray message;
22  int duration {0};
23 };
The TLog class contains log messages for web application.
Definition: tlog.h:9
TLog()
Constructor.
Definition: tlog.h:11
QByteArray message
Message.
Definition: tlog.h:21
QDateTime timestamp
Timestamp.
Definition: tlog.h:17
#define T_CORE_EXPORT
Definition: tdeclexport.h:28
QDataStream & operator>>(QDataStream &in, TLog &log)
Definition: tlog.cpp:47
QDataStream & operator<<(QDataStream &out, const TLog &log)
Definition: tlog.cpp:40