diff --git a/IPA.Loader/Config/SelfConfig.cs b/IPA.Loader/Config/SelfConfig.cs index 2071f016..07bf4d4c 100644 --- a/IPA.Loader/Config/SelfConfig.cs +++ b/IPA.Loader/Config/SelfConfig.cs @@ -72,6 +72,12 @@ namespace IPA.Config // LINE: ignore public static bool ShowDebug_ => SelfConfigRef.Value.Debug.ShowDebug; + // This option only takes effect after a full game restart, unless new logs are created again + public bool CondenseModLogs = false; + // LINE: ignore 2 + public static bool CondenseModLogs_ => SelfConfigRef.Value.Debug.CondenseModLogs + && CommandLineValues.Debug.CondenseModLogs; + public bool ShowHandledErrorStackTraces = false; // LINE: ignore public static bool ShowHandledErrorStackTraces_ => SelfConfigRef.Value.Debug.ShowHandledErrorStackTraces; diff --git a/IPA.Loader/Logging/StandardLogger.cs b/IPA.Loader/Logging/StandardLogger.cs index 1f9566b0..a4a80b71 100644 --- a/IPA.Loader/Logging/StandardLogger.cs +++ b/IPA.Loader/Logging/StandardLogger.cs @@ -120,10 +120,9 @@ namespace IPA.Logging { logName = $"{parent.logName}/{subName}"; this.parent = parent; - printers = new List() - { - new PluginSubLogPrinter(parent.logName, subName) - }; + printers = new List(); + if (SelfConfig.Debug_.CondenseModLogs_) + printers.Add(new PluginSubLogPrinter(parent.logName, subName)); if (logThread == null || !logThread.IsAlive) {