Revision: | 771 |
Committed: | Sun Mar 31 19:02:16 2013 UTC (12 years, 6 months ago) by s10k |
Content type: | text/x-chdr |
Original Path: | Vago/trunk/Vago/logger.h |
File size: | 431 byte(s) |
Log Message: |
# | Content |
---|---|
1 | #ifndef LOGGER_H |
2 | #define LOGGER_H |
3 | #include <QFile> |
4 | #include <QTextStream> |
5 | #include <QMutex> |
6 | #include <QDateTime> |
7 | #include <util.h> |
8 | |
9 | class Logger |
10 | { |
11 | public: |
12 | Logger(); |
13 | ~Logger(); |
14 | void writeString(QString strToWrite); |
15 | void writeBytes(QByteArray arrToWrite); |
16 | private: |
17 | QFile *myLogFile; |
18 | QTextStream *logStream; |
19 | QMutex mutex; //mutex for control writes to the logs |
20 | }; |
21 | |
22 | #endif // LOGGER_H |