ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/s10k/Vago/logger.h
Revision: 811
Committed: Sat Apr 13 12:15:20 2013 UTC (12 years, 6 months ago) by s10k
Content type: text/x-chdr
Original Path: Vago/trunk/Vago/logger.h
File size: 448 byte(s)
Log Message:
Vago: some layout fixes on windows, removed debug includes

File Contents

# Content
1 #ifndef LOGGER_H
2 #define LOGGER_H
3 #include <QFile>
4 #include <QTextStream>
5 #include <QMutex>
6 #include <QDateTime>
7
8 #include "util.h"
9
10 class Logger
11 {
12 public:
13 Logger(QString appDir);
14 ~Logger();
15 void writeString(QString strToWrite);
16 void writeBytes(QByteArray arrToWrite);
17 private:
18 QFile *myLogFile;
19 QTextStream *logStream;
20 QMutex mutex; //mutex for control writes to the logs
21 };
22
23 #endif // LOGGER_H