Files
porymap/include/log/log.h
GriffinR 31c3fbd0a9
Some checks are pending
Build Porymap / build-linux (, 5.14.2) (push) Waiting to run
Build Porymap / build-linux (, 6.8.*) (push) Waiting to run
Build Porymap / build-linux (minimal, 5.14.2) (push) Waiting to run
Build Porymap / build-macos (macos-15-intel) (push) Waiting to run
Build Porymap / build-macos (macos-latest) (push) Waiting to run
Build Porymap / build-static-windows (push) Waiting to run
Fix Qt5 build
2026-07-04 18:43:46 -04:00

27 lines
453 B
C

#pragma once
#ifndef LOG_H
#define LOG_H
#include <QString>
#include <QHash>
enum class LogType {
LOG_ERROR,
LOG_WARN,
LOG_INFO,
};
inline uint qHash(const LogType &key, uint seed = 0) {
return qHash(static_cast<int>(key), seed);
}
void logInit();
void logInfo(const QString &message);
void logWarn(const QString &message);
void logError(const QString &message);
QString getLogPath();
QString getMostRecentError();
#endif // LOG_H