mirror of
https://github.com/BepInEx/BepInEx.git
synced 2026-10-20 01:46:13 +00:00
Remove unneeded StdOutLogListener
Not needed anymore as the fix is handled by Doorstop
This commit is contained in:
1 parent
8c4dcde974
commit
5959c03522
3 files changed
+1
-21
No files matched your search
@@ -1,17 +0,0 @@
|
||||
using BepInEx.Logging;
|
||||
|
||||
namespace BepInEx.Core.Logging
|
||||
{
|
||||
/// <summary>
|
||||
/// Logs entries to StdOut, for platforms that spawn a console instance and hijack the original output stream.
|
||||
/// </summary>
|
||||
public class StdOutLogListener : ILogListener
|
||||
{
|
||||
public void LogEvent(object sender, LogEventArgs eventArgs)
|
||||
{
|
||||
ConsoleManager.StandardOutStream?.Write(eventArgs.ToStringLine());
|
||||
}
|
||||
|
||||
public void Dispose() { }
|
||||
}
|
||||
}
|
||||
@@ -32,7 +32,7 @@ namespace BepInEx.Preloader.Core.Logging
|
||||
if (PreloaderConsoleListener.LogEvents == null || PreloaderConsoleListener.LogEvents.Count == 0)
|
||||
return;
|
||||
|
||||
// Temporarily disable the console log listener as we replay the preloader logs
|
||||
// Temporarily disable the console log listener (if there is one from preloader) as we replay the preloader logs
|
||||
var logListener = Logger.Listeners.FirstOrDefault(logger => logger is ConsoleLogListener);
|
||||
|
||||
if (logListener != null)
|
||||
|
||||
@@ -6,7 +6,6 @@ using System.IO;
|
||||
using System.Linq;
|
||||
using BepInEx.Bootstrap;
|
||||
using BepInEx.Configuration;
|
||||
using BepInEx.Core.Logging;
|
||||
using BepInEx.Logging;
|
||||
using BepInEx.Preloader.Core;
|
||||
using BepInEx.Preloader.Core.Logging;
|
||||
@@ -97,8 +96,6 @@ namespace BepInEx.Preloader.Unity
|
||||
Logger.Listeners.Remove(PreloaderLog);
|
||||
|
||||
PreloaderLog.Dispose();
|
||||
|
||||
Logger.Listeners.Add(new StdOutLogListener());
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user