Browse Source

Temporary fix console logging not working on Unity 2018+ games

ghorsington 4 years ago
parent
commit
f22e5836ca
1 changed files with 1 additions and 2 deletions
  1. 1 2
      BepInEx/Logging/ConsoleLogListener.cs

+ 1 - 2
BepInEx/Logging/ConsoleLogListener.cs

@@ -12,9 +12,8 @@ namespace BepInEx.Logging
 		{
 			if ((eventArgs.Level & ConfigConsoleDisplayedLevel.Value) == 0)
 				return;
-
 			ConsoleManager.SetConsoleColor(eventArgs.Level.GetConsoleColor());
-			Console.Write(eventArgs.ToStringLine());
+			ConsoleManager.ConsoleStream?.Write(eventArgs.ToStringLine());
 			ConsoleManager.SetConsoleColor(ConsoleColor.Gray);
 		}