Serilog.Sinks.WinForms
Serilog.Sinks.WinForms copied to clipboard
Purging/trimming old log lines
Is your feature request related to a problem? Please describe. When you have a long-running application, the controls will eventually fill up with information - there is currently no feature that allows to keep a maximum of n lines, rows, etc..
Describe the solution you'd like It would be nice to have an auto-purge feature that keeps the memory footprint under control (i.e., a maximum number of rows in a grid, or lines/bytes in a textbox).
Describe alternatives you've considered The alternative is manipulating the inner object directly, which at least in the case of your grid, requires accessing a private field.
Hello, that'd be a great idea, this is representing 2 days of logging in my app:

More than 6 millions objects representing about 360MB of Heap Generation
I think it will be nice to have this functionality i ll make code changes soon :)