-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlogger.h
More file actions
30 lines (27 loc) · 683 Bytes
/
logger.h
File metadata and controls
30 lines (27 loc) · 683 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef LOGGER_H
#define LOGGER_H
#include <string>
#include <QString>
#include <QObject>
#include <QVariant>
#include <QMetaObject>
#include "stdint.h"
#define sint int32_t
class Logger
{
public:
Logger(QObject& guiObject);
void debug(std::string message);
void debug(std::string message, sint value);
void info(std::string message);
void warning(std::string message);
void warning(std::string message, sint value);
void error(std::string message);
void error(std::string message, sint value);
const int loglevel = 2;
static Logger* loggerInst;
private:
QObject* guiObject;
void printLn(const QString& line);
};
#endif // LOGGER_H