removed unsafe code from Path

This commit is contained in:
2024-01-07 13:41:33 +06:00
parent 5438347bba
commit 7a495926bf
4 changed files with 36 additions and 59 deletions

View File

@@ -27,7 +27,7 @@ public class FileLogger : ILogger
{}
public FileLogger(IOPath dir, IOPath programName, ILogFormat format)
: this($"{dir}{Path.Sep}{programName}_{DateTime.Now.ToString(MyTimeFormat.ForFileNames)}.log", format)
: this($"{Path.Concat(dir, programName)}_{DateTime.Now.ToString(MyTimeFormat.ForFileNames)}.log", format)
{}
public FileLogger(IOPath dir, IOPath programName) : this(dir, programName, new DefaultLogFormat())