Skip to content

Commit

Permalink
Merge pull request #1728 from ZeeWanderer/fixlogfile
Browse files Browse the repository at this point in the history
[CrossPlatform][ProcessFactory] fix log file creation
  • Loading branch information
erri120 authored Jul 9, 2024
2 parents 7868085 + 77e4576 commit cb6c79f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NexusMods.CrossPlatform/Process/ProcessFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public async Task<CommandResult> ExecuteAsync(

var fileName = GetFileName(command);

var logFileName = $"{fileName}-{DateTime.Now:s}";
var logFileName = $"{fileName}-{DateTime.Now:yyyy-MM-dd_HH-mm-ss}";
var stdOutFilePath = _processLogsFolder.Combine(logFileName + ".stdout.log");
var stdErrFilePath = _processLogsFolder.Combine(logFileName + ".stderr.log");
_logger.LogInformation("Using process logs {StdOutLogPath} and {StdErrLogPath}", stdOutFilePath, stdErrFilePath);
Expand Down

0 comments on commit cb6c79f

Please sign in to comment.