diff --git a/SabreHelper/Logger.cs b/SabreHelper/Logger.cs index 969627f6..2ec470cd 100644 --- a/SabreHelper/Logger.cs +++ b/SabreHelper/Logger.cs @@ -8,7 +8,6 @@ namespace SabreTools.Helper /// /// /// Things to do: - /// - Create log files by date /// - Clean up log files if there are more than x number per program /// - Allow for "triggerable" logging done on an interval (async) /// - Log filtering? (#if debug?) @@ -46,11 +45,11 @@ namespace SabreTools.Helper /// Initialize a Logger object with the given information /// /// True if file should be written to instead of console - /// Optional filename representing log location - public Logger(bool tofile, string filename = "") + /// Filename representing log location + public Logger(bool tofile, string filename) { _tofile = tofile; - _filename = filename; + _filename = Path.GetFileNameWithoutExtension(filename) + " (" + DateTime.Now.ToString("yyyy-MM-dd HHmmss") + ")" + Path.GetExtension(filename); if (!Directory.Exists(_basepath)) {