mirror of
https://github.com/BepInEx/BepInEx.git
synced 2026-10-20 01:46:13 +00:00
Temporary fix console logging not working on Unity 2018+ games
This commit is contained in:
1 parent
1831a19627
commit
f22e5836ca
1 file changed
+1
-2
@@ -12,9 +12,8 @@ namespace BepInEx.Logging
|
|||||||
{
|
{
|
||||||
if ((eventArgs.Level & ConfigConsoleDisplayedLevel.Value) == 0)
|
if ((eventArgs.Level & ConfigConsoleDisplayedLevel.Value) == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
ConsoleManager.SetConsoleColor(eventArgs.Level.GetConsoleColor());
|
ConsoleManager.SetConsoleColor(eventArgs.Level.GetConsoleColor());
|
||||||
Console.Write(eventArgs.ToStringLine());
|
ConsoleManager.ConsoleStream?.Write(eventArgs.ToStringLine());
|
||||||
ConsoleManager.SetConsoleColor(ConsoleColor.Gray);
|
ConsoleManager.SetConsoleColor(ConsoleColor.Gray);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user