From 26f8f4edb75bb1a7f9576cffc67e9b543999b3ee Mon Sep 17 00:00:00 2001 From: James Rowe Date: Fri, 23 Jun 2017 08:04:15 -0600 Subject: [PATCH] Save the log file in the user directory --- src/common/logging/backend_spdlog.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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