From 3912706d2728d37d4a40655a0e82e1f5a2c00a54 Mon Sep 17 00:00:00 2001 From: Syntriax Date: Fri, 8 Aug 2025 16:27:57 +0300 Subject: [PATCH] chore: force .log extension to log files --- Engine.Core/Debug/FileLogger.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Engine.Core/Debug/FileLogger.cs b/Engine.Core/Debug/FileLogger.cs index ff305e2..060ea6a 100644 --- a/Engine.Core/Debug/FileLogger.cs +++ b/Engine.Core/Debug/FileLogger.cs @@ -14,6 +14,9 @@ public class FileLogger : LoggerBase public FileLogger(string filePath) { + if (!filePath.EndsWith(".log")) + filePath += ".log"; + FilePath = filePath; bool isRelativePath = Path.GetFullPath(filePath).CompareTo(filePath) != 0;