chore: force .log extension to log files

This commit is contained in:
Syntriax 2025-08-08 16:27:57 +03:00
parent d78c42a653
commit 3912706d27

View File

@ -14,6 +14,9 @@ public class FileLogger : LoggerBase
public FileLogger(string filePath) public FileLogger(string filePath)
{ {
if (!filePath.EndsWith(".log"))
filePath += ".log";
FilePath = filePath; FilePath = filePath;
bool isRelativePath = Path.GetFullPath(filePath).CompareTo(filePath) != 0; bool isRelativePath = Path.GetFullPath(filePath).CompareTo(filePath) != 0;