From cccf0fffa320fe8dac4f9aa5cb78a74184a14218 Mon Sep 17 00:00:00 2001 From: NeotericSh Date: Fri, 25 Oct 2024 06:46:24 +0200 Subject: [PATCH] Fix appending logging --- src/errorLog/errorLog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/errorLog/errorLog.cpp b/src/errorLog/errorLog.cpp index 8707bb6..d3893c4 100644 --- a/src/errorLog/errorLog.cpp +++ b/src/errorLog/errorLog.cpp @@ -52,7 +52,7 @@ void logErrorToFile(std::string location, std::string logLevel, std::string mess std::string currentLogLineStr = currentDateTime; std::string logLine = currentLogLineStr + " - " + location + " - " + logLevel + " - " + message; - std::ofstream outFile(ERROR_FILE_PATH); + std::ofstream outFile(ERROR_FILE_PATH, std::ios::app); outFile << logLine << std::endl; outFile.close(); } \ No newline at end of file