mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-21 23:37:44 +01:00
Show logs on loading dialog
This commit is contained in:
parent
9db4e2f3a1
commit
877906ae15
4 changed files with 81 additions and 28 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue