Show logs on loading dialog

This commit is contained in:
Soreepeong 2024-07-21 19:09:05 +09:00
parent 9db4e2f3a1
commit 877906ae15
4 changed files with 81 additions and 28 deletions

View file

@ -7,6 +7,7 @@ using System.Threading.Tasks;
using Dalamud.Common;
using Dalamud.Configuration.Internal;
using Dalamud.Interface.Internal.Windows;
using Dalamud.Logging.Internal;
using Dalamud.Logging.Retention;
using Dalamud.Plugin.Internal;
@ -232,6 +233,10 @@ public sealed class EntryPoint
private static void SerilogOnLogLine(object? sender, (string Line, LogEvent LogEvent) ev)
{
if (!LoadingDialog.IsGloballyHidden)
LoadingDialog.NewLogEntries.Enqueue(ev);
ConsoleWindow.NewLogEntries.Enqueue(ev);
if (ev.LogEvent.Exception == null)
return;