Hyprland/src/debug/Log.hpp

21 lines
326 B
C++
Raw Normal View History

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, ...);
inline std::string logFile;
2022-07-01 15:57:56 +02:00
inline int64_t* disableLogs = nullptr;
2022-03-16 20:50:55 +01:00
};