Hyprland/src/debug/Log.hpp

19 lines
259 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,
CRIT
};
namespace Debug {
void init();
2022-03-16 20:50:55 +01:00
void log(LogLevel level, const char* fmt, ...);
inline std::string logFile;
2022-03-16 20:50:55 +01:00
};