diff --git a/GlosSITarget/main.cpp b/GlosSITarget/main.cpp index b2e2588..b2f659f 100644 --- a/GlosSITarget/main.cpp +++ b/GlosSITarget/main.cpp @@ -44,7 +44,16 @@ int main(int argc, char* argv[]) const auto console_sink = std::make_shared(); console_sink->set_level(spdlog::level::trace); #ifdef _WIN32 - const auto file_sink = std::make_shared("./glossitarget.log", true); + auto path = std::filesystem::temp_directory_path() + .parent_path() + .parent_path(); + + path /= "Roaming"; + path /= "GlosSI"; + if (!std::filesystem::exists(path)) + std::filesystem::create_directories(path); + path /= "glossitarget.log"; + const auto file_sink = std::make_shared(path.string(), true); #else auto file_sink = std::make_shared("/tmp/glossitarget.log", true); #endif