@using NLog @using NLog.Targets @namespace Wabbajack.App.Blazor.Components
@logItem
@code { // TODO: [Low] More parameters to customise the logger. E.g. Reverse order. // TODO: [High] Find a way to auto-scroll. (JS interop?) private MemoryTarget? _memoryTarget; private ICollection Logs => _memoryTarget?.Logs ?? Array.Empty(); protected override void OnInitialized() { _memoryTarget = LogManager.Configuration.FindTargetByName("ui"); } }