diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-08-22 18:50:38 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-08-22 18:50:38 +0200 |
| commit | 63493b57363f592861f160a38164f2f7198a7812 (patch) | |
| tree | 402f2d08e42cb0ce8d7b76d4492286cbfd3027f9 /src/debug/Log.cpp | |
| parent | 6565c31dbfb590c9173a192f4f26e6ea5c787375 (diff) | |
use a custom logging func for wlr
Diffstat (limited to 'src/debug/Log.cpp')
| -rw-r--r-- | src/debug/Log.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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) |
