2022-03-16 20:50:55 +01:00
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
#define LOGMESSAGESIZE 1024
|
|
|
|
|
|
|
|
enum LogLevel {
|
|
|
|
NONE = -1,
|
|
|
|
LOG = 0,
|
|
|
|
WARN,
|
|
|
|
ERR,
|
2022-06-25 20:50:29 +02:00
|
|
|
CRIT,
|
|
|
|
INFO
|
2022-03-16 20:50:55 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
namespace Debug {
|
2022-06-03 17:48:07 +02:00
|
|
|
void init(std::string IS);
|
2022-03-16 20:50:55 +01:00
|
|
|
void log(LogLevel level, const char* fmt, ...);
|
2022-06-03 17:41:57 +02:00
|
|
|
|
|
|
|
inline std::string logFile;
|
2022-07-01 15:57:56 +02:00
|
|
|
inline int64_t* disableLogs = nullptr;
|
2022-07-18 11:46:42 +02:00
|
|
|
inline int64_t* disableTime = nullptr;
|
2022-03-16 20:50:55 +01:00
|
|
|
};
|