Skip to content

Commit

Permalink
Write updater logs to stdout (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyrrrz authored Apr 8, 2024
1 parent cd40e7f commit 506b58e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Onova.Updater/Updater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ private void WriteLog(string content)
var date = DateTimeOffset
.Now
.ToString("dd-MMM-yyyy HH:mm:ss.fff", CultureInfo.InvariantCulture);
_log.WriteLine($"{date}> {content}");

var entry = $"{date}> {content}";

Console.Write(entry);
_log.WriteLine(entry);
_log.Flush();
}

Expand Down

0 comments on commit 506b58e

Please sign in to comment.