mirror of
https://github.com/huderlem/porymap.git
synced 2026-08-12 03:45:51 -05:00
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
27 lines
453 B
C
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
|