From 9486a230c74e8873621fdf64a33adaaa660762e3 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Fri, 3 Jun 2022 17:48:07 +0200 Subject: Log to the instance folder --- src/debug/Log.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/debug/Log.cpp') diff --git a/src/debug/Log.cpp b/src/debug/Log.cpp index b3d13583..559e7b79 100644 --- a/src/debug/Log.cpp +++ b/src/debug/Log.cpp @@ -1,14 +1,15 @@ #include "Log.hpp" #include "../defines.hpp" +#include "../Compositor.hpp" #include #include -void Debug::init() { +void Debug::init(std::string IS) { if (ISDEBUG) - logFile = "/tmp/hypr/hyprlandd-" + std::to_string(time(NULL)) + ".log"; + logFile = "/tmp/hypr/" + IS + "/hyprlandd.log"; else - logFile = "/tmp/hypr/hyprland-" + std::to_string(time(NULL)) + ".log"; + logFile = "/tmp/hypr/" + IS + "/hyprland.log"; } void Debug::log(LogLevel level, const char* fmt, ...) { -- cgit v1.2.3