From 03b36c803011d17f0b3d783b8b241a67074789a2 Mon Sep 17 00:00:00 2001 From: jduncanator Date: Tue, 4 Sep 2018 10:07:28 +1000 Subject: [PATCH] Logging: Resolve code styling issues --- Ryujinx/Ui/ConsoleLog.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Ryujinx/Ui/ConsoleLog.cs b/Ryujinx/Ui/ConsoleLog.cs index ef7f475b45..6fb92e333f 100644 --- a/Ryujinx/Ui/ConsoleLog.cs +++ b/Ryujinx/Ui/ConsoleLog.cs @@ -9,7 +9,9 @@ namespace Ryujinx static class ConsoleLog { private static Thread MessageThread; + private static BlockingCollection MessageQueue; + private static Dictionary LogColors; private static object ConsoleLock; @@ -54,7 +56,9 @@ namespace Ryujinx private static void PrintLog(LogEventArgs e) { string FormattedTime = e.Time.ToString(@"hh\:mm\:ss\.fff"); + string CurrentThread = Thread.CurrentThread.ManagedThreadId.ToString("d4"); + string Message = FormattedTime + " | " + CurrentThread + " " + e.Message; if (LogColors.TryGetValue(e.Level, out ConsoleColor Color))