From 63493b57363f592861f160a38164f2f7198a7812 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Mon, 22 Aug 2022 18:50:38 +0200 Subject: use a custom logging func for wlr --- src/debug/Log.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/debug/Log.cpp') diff --git a/src/debug/Log.cpp b/src/debug/Log.cpp index 367cf8ca..a341f4b4 100644 --- a/src/debug/Log.cpp +++ b/src/debug/Log.cpp @@ -12,6 +12,10 @@ void Debug::init(std::string IS) { logFile = "/tmp/hypr/" + IS + "/hyprland.log"; } +void Debug::wlrLog(wlr_log_importance level, const char* fmt, va_list args) { + Debug::log(NONE, std::string("[wlr] " + std::string(fmt)).c_str(), args); +} + void Debug::log(LogLevel level, const char* fmt, ...) { if (disableLogs && *disableLogs) -- cgit v1.2.3