porymap/include/log.h

27 lines
453 B
C
Raw Normal View History

2020-09-13 23:37:55 +01:00
#pragma once
#ifndef LOG_H
#define LOG_H
#include <QApplication>
#include <QtDebug>
#include <QFile>
#include <QTextStream>
#include <QString>
#include <QDebug>
enum LogType {
LOG_ERROR,
LOG_WARN,
LOG_INFO,
};
void logInfo(QString message);
void logWarn(QString message);
void logError(QString message);
void log(QString message, LogType type);
QString getLogPath();
QString getMostRecentError();
2020-10-10 19:06:51 +01:00
bool cleanupLargeLog();
#endif // LOG_H