porymap/include/log.h
2020-10-24 15:51:10 -04:00

26 lines
453 B
C

#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();
bool cleanupLargeLog();
#endif // LOG_H