Hyprland/src/debug/Log.hpp
2022-07-18 11:46:42 +02:00

22 lines
No EOL
369 B
C++

#pragma once
#include <string>
#define LOGMESSAGESIZE 1024
enum LogLevel {
NONE = -1,
LOG = 0,
WARN,
ERR,
CRIT,
INFO
};
namespace Debug {
void init(std::string IS);
void log(LogLevel level, const char* fmt, ...);
inline std::string logFile;
inline int64_t* disableLogs = nullptr;
inline int64_t* disableTime = nullptr;
};