From 6a63eb47c238a1283efe31c6fac7b911cf64d8e0 Mon Sep 17 00:00:00 2001 From: Sanae Date: Wed, 27 Apr 2022 21:33:48 -0600 Subject: [PATCH] Use Write instead of WriteLine for logging --- Shared/Logger.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Shared/Logger.cs b/Shared/Logger.cs index 81e217e..c6cd2ef 100644 --- a/Shared/Logger.cs +++ b/Shared/Logger.cs @@ -11,22 +11,22 @@ public class Logger { public void Info(string text) { Console.ResetColor(); - Console.WriteLine(PrefixNewLines(text, $"Info [{Name}]")); + Console.Write(PrefixNewLines(text, $"Info [{Name}]")); } public void Warn(string text) { Console.ForegroundColor = ConsoleColor.Yellow; - Console.WriteLine(PrefixNewLines(text, $"Warn [{Name}]")); + Console.Write(PrefixNewLines(text, $"Warn [{Name}]")); } public void Error(string text) { Console.ForegroundColor = ConsoleColor.Red; - Console.WriteLine(PrefixNewLines(text, $"Error [{Name}]")); + Console.Write(PrefixNewLines(text, $"Error [{Name}]")); } public void Error(Exception error) { Console.ForegroundColor = ConsoleColor.Red; - Console.WriteLine(PrefixNewLines(error.ToString(), $"Error [{Name}]")); + Console.Write(PrefixNewLines(error.ToString(), $"Error [{Name}]")); } private string PrefixNewLines(string text, string prefix) {