From 506b58e83eea86fae0a94aefac5e34b1744d948b Mon Sep 17 00:00:00 2001 From: Oleksii Holub <1935960+Tyrrrz@users.noreply.github.com> Date: Mon, 8 Apr 2024 15:49:40 +0300 Subject: [PATCH] Write updater logs to stdout (#56) --- Onova.Updater/Updater.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Onova.Updater/Updater.cs b/Onova.Updater/Updater.cs index be4e4ed..f2b05fb 100644 --- a/Onova.Updater/Updater.cs +++ b/Onova.Updater/Updater.cs @@ -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(); }