mirror of
https://github.com/alexhopeoconnor/dnsmasq-webui.git
synced 2026-10-03 22:12:00 +10:00
- Add real-time app logs via SignalR (log level, category filters) - Add filters modal with restore defaults; sentinel for empty arrays - Add client settings: max lines and auto-scroll per log panel - Improve NavMenu: align settings + hamburger, smaller mobile logo - LogsService, LogsHub, LoggingController, AppLogsLoggerProvider - Persist log level and filters to appsettings.Overrides.json
17 lines
625 B
C#
17 lines
625 B
C#
namespace DnsmasqWebUI.Infrastructure.Services.Abstractions;
|
|
|
|
/// <summary>
|
|
/// Ring buffer of recent app log lines. Filled by ILoggerProvider, drained for SignalR push.
|
|
/// </summary>
|
|
public interface IAppLogsBuffer
|
|
{
|
|
/// <summary>Returns up to maxLines most recent lines (oldest first).</summary>
|
|
IReadOnlyList<string> GetRecent(int maxLines = 500);
|
|
|
|
/// <summary>Enqueues a formatted log line. Called by the logging provider.</summary>
|
|
void Enqueue(string line);
|
|
|
|
/// <summary>Returns and clears pending lines for streaming push. Called by pusher.</summary>
|
|
IReadOnlyList<string> DrainPending();
|
|
}
|