denikson hace 6 años
padre
commit
2953fc8e6c
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      BepInEx/Logging/UnityLogWriter.cs

+ 4 - 0
BepInEx/Logging/UnityLogWriter.cs

@@ -36,6 +36,10 @@ namespace BepInEx.Logging
             Kon.ForegroundColor = level.GetConsoleColor();
             base.Log(level, entry);
             Kon.ForegroundColor = ConsoleColor.Gray;
+
+            // If the display level got ignored, still write it to the log
+            if ((DisplayedLevels & level) == LogLevel.None)
+                WriteToLog($"[{level.GetHighestLevel()}] {entry}\r\n");
         }
 
         public override void WriteLine(string value) => InternalWrite($"{value}\r\n");