Limit console log lines held in memory (#1683)

* Add AG.Collections.RollingList

* Use RollingList for logs + Adaption changes

* Create Dalamud.Utility.ThrowHelper

* Create Dalamud.Utility.RollingList

* ConsoleWindow: Remove dependency

* Remove NuGet Dependency

* Add Log Lines Limit configuration

* Use Log Lines Limit configuration and handle changes

* Make log lines limit configurable
This commit is contained in:
AzureGem 2024-02-27 13:15:11 -05:00 committed by GitHub
parent e6c97f0f18
commit 0651c643b1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 375 additions and 15 deletions

View file

@ -215,6 +215,11 @@ internal sealed class DalamudConfiguration : IServiceType, IDisposable
/// </summary>
public bool LogOpenAtStartup { get; set; }
/// <summary>
/// Gets or sets the number of lines to keep for the Dalamud Console window.
/// </summary>
public int LogLinesLimit { get; set; } = 10000;
/// <summary>
/// Gets or sets a value indicating whether or not the dev bar should open at startup.
/// </summary>