logfile name generation fixed again
This commit is contained in:
parent
ce27d3cb49
commit
06bb079e7d
@ -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; }
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user