Merge pull request #507 from wabbajack-tools/issue-482

Don't overwrite logs (fixes issue #482)
This commit is contained in:
Timothy Baldridge 2020-02-11 15:16:05 -07:00 committed by GitHub
commit cc188af901
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,7 +54,7 @@ namespace Wabbajack.Common
Directory.CreateDirectory(Consts.LocalAppDataPath);
var programName = Assembly.GetEntryAssembly()?.Location ?? "Wabbajack";
LogFile = programName + ".log";
LogFile = Path.GetFileNameWithoutExtension(programName) + DateTime.Now.ToString(" yyyy-MM-dd HH_mm_ss") + ".log";
_startTime = DateTime.Now;
if (LogFile.FileExists())