mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-05 14:45:58 +01:00
98a4fa2b0d
* clang-format stuff and format files
25 lines
No EOL
525 B
C++
25 lines
No EOL
525 B
C++
#pragma once
|
|
#include <string>
|
|
#include <wlr/util/log.h>
|
|
|
|
#define LOGMESSAGESIZE 1024
|
|
|
|
enum LogLevel
|
|
{
|
|
NONE = -1,
|
|
LOG = 0,
|
|
WARN,
|
|
ERR,
|
|
CRIT,
|
|
INFO
|
|
};
|
|
|
|
namespace Debug {
|
|
void init(const std::string& IS);
|
|
void log(LogLevel level, const char* fmt, ...);
|
|
void wlrLog(wlr_log_importance level, const char* fmt, va_list args);
|
|
|
|
inline std::string logFile;
|
|
inline int64_t* disableLogs = nullptr;
|
|
inline int64_t* disableTime = nullptr;
|
|
}; |