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
12 lines
631 B
C#
12 lines
631 B
C#
namespace DnsmasqWebUI.Infrastructure.Client.Abstractions;
|
|
|
|
/// <summary>Client for runtime logging API (log level and category filters).</summary>
|
|
public interface ILoggingClient
|
|
{
|
|
Task<string> GetLevelAsync(CancellationToken ct = default);
|
|
Task<string> SetLevelAsync(string logLevel, CancellationToken ct = default);
|
|
Task<IReadOnlyList<string>> GetFiltersAsync(CancellationToken ct = default);
|
|
Task<IReadOnlyList<string>> SetFiltersAsync(IReadOnlyList<string> excludedCategoryPrefixes, CancellationToken ct = default);
|
|
Task<IReadOnlyList<string>> RestoreFilterDefaultsAsync(CancellationToken ct = default);
|
|
}
|