diff --git a/src/common/logging/backend_spdlog.cpp b/src/common/logging/backend_spdlog.cpp index 271cc7b24..86f595c4b 100644 --- a/src/common/logging/backend_spdlog.cpp +++ b/src/common/logging/backend_spdlog.cpp @@ -8,6 +8,7 @@ #include #include "common/assert.h" +#include "common/file_util.h" #include "common/logging/backend.h" #include "common/logging/backend_spdlog.h" #include "common/logging/filter.h" @@ -66,7 +67,8 @@ SpdLogBackend::SpdLogBackend() { // Define the sinks to be passed to the loggers // true means truncate file - auto file_sink = std::make_shared("citra_log.txt", true); + auto file_sink = std::make_shared( + FileUtil::GetUserPath(D_USER_IDX) + "citra_log.txt", true); #ifdef _WIN32 auto color_sink = std::make_shared(); #else