diff options
Diffstat (limited to 'src/debug/Log.hpp')
| -rw-r--r-- | src/debug/Log.hpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/debug/Log.hpp b/src/debug/Log.hpp index 8f8f615c..98d176af 100644 --- a/src/debug/Log.hpp +++ b/src/debug/Log.hpp @@ -4,9 +4,10 @@ #define LOGMESSAGESIZE 1024 -enum LogLevel { +enum LogLevel +{ NONE = -1, - LOG = 0, + LOG = 0, WARN, ERR, CRIT, @@ -14,11 +15,11 @@ enum LogLevel { }; namespace Debug { - void init(std::string IS); - void log(LogLevel level, const char* fmt, ...); - void wlrLog(wlr_log_importance level, const char* fmt, va_list args); + 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; + inline int64_t* disableLogs = nullptr; + inline int64_t* disableTime = nullptr; };
\ No newline at end of file |
