logfile name generation fixed again

This commit is contained in:
timerix 2022-08-17 03:14:45 +06:00
parent ce27d3cb49
commit 06bb079e7d

View File

@ -11,7 +11,8 @@ public class FileLogger : IDisposable
} }
public FileLogger(string dir, string programName) public FileLogger(string dir, string programName)
: this($"{dir}{Путь.Разд}{programName}_{DateTime.Now}.log".Replace(':', '-').Replace(' ', '_')) { } : this($"{dir}{Путь.Разд}{programName}_{DateTime.Now.ToString(CultureInfo.InvariantCulture)}.log"
.Replace(':', '-').Replace(' ', '_')) { }
public string LogfileName { get; protected set; } public string LogfileName { get; protected set; }
public System.IO.FileStream LogfileStream { get; protected set; } public System.IO.FileStream LogfileStream { get; protected set; }