From 7440f1866302685e8fd58886af4414f28ab8fc8d Mon Sep 17 00:00:00 2001 From: pizzaboxer Date: Fri, 30 Aug 2024 21:16:11 +0100 Subject: [PATCH] Write temp logs to corrected specific folder --- Bloxstrap/Logger.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Bloxstrap/Logger.cs b/Bloxstrap/Logger.cs index bbaa40a..4d4ee69 100644 --- a/Bloxstrap/Logger.cs +++ b/Bloxstrap/Logger.cs @@ -16,8 +16,7 @@ { const string LOG_IDENT = "Logger::Initialize"; - // TODO: /Bloxstrap/Logs/ - string directory = useTempDir ? Path.Combine(Paths.LocalAppData, "Temp") : Path.Combine(Paths.Base, "Logs"); + string directory = useTempDir ? Path.Combine(Paths.TempLogs) : Path.Combine(Paths.Base, "Logs"); string timestamp = DateTime.UtcNow.ToString("yyyyMMdd'T'HHmmss'Z'"); string filename = $"{App.ProjectName}_{timestamp}.log"; string location = Path.Combine(directory, filename);