porymap/include/log.h
GriffinR 8b4c1c64b0
Some checks failed
Build Porymap / build-linux (, 5.14.2) (push) Has been cancelled
Build Porymap / build-linux (, 6.8.*) (push) Has been cancelled
Build Porymap / build-linux (minimal, 5.14.2) (push) Has been cancelled
Build Porymap / build-macos (macos-15-intel) (push) Has been cancelled
Build Porymap / build-macos (macos-latest) (push) Has been cancelled
Build Porymap / build-static-windows (push) Has been cancelled
Include Qt messages in log file
2026-06-15 17:37:37 -04:00

33 lines
639 B
C++

#pragma once
#ifndef LOG_H
#define LOG_H
#include <QApplication>
#include <QtDebug>
#include <QFile>
#include <QTextStream>
#include <QString>
#include <QDebug>
#include <QStatusBar>
enum LogType {
LOG_ERROR,
LOG_WARN,
LOG_INFO,
};
void logInit();
void logInfo(const QString &message);
void logWarn(const QString &message);
void logError(const QString &message);
template <typename T>
void log(const QString &message, T type);
QString getLogPath();
QString getMostRecentError();
void addLogStatusBar(QStatusBar *statusBar, const QSet<LogType> &types = {});
bool removeLogStatusBar(QStatusBar *statusBar);
#endif // LOG_H