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;