2 Commits
Author SHA1 Message Date
poli0981andClaude Opus 5.5 ee557ab532 perf(logging): refresh the Log Viewer once per burst, not per event
Every log event made the Log Viewer and Debug panel rebuild up to 1000
rows on the UI thread. The in-memory store now raises EntriesChanged once,
150 ms after the first event of a burst; Clear still notifies at once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-21 21:21:25 +07:00
poli0981andClaude Opus 4.8 899bd93e37 Phase 5b: Log Viewer, Debug panel, global crash handler, bug report
Diagnostics slice of Phase 5 (builds on 5a's in-shell nav):
- Structured logging: InMemoryLogStore now stores LogEntry (timestamp/level/message)
  + raises EntriesChanged; new ILogReader contract. A shared Serilog LoggingLevelSwitch
  (ILogLevelController) makes the level runtime-adjustable. ILogMaintenance exports a
  .zip (streams each log-*.txt with shared read so today's locked file is included),
  reports size, and deletes rolled files.
- Log Viewer (in-shell section, Ctrl+L / Tools menu): live entries, level + text filter,
  per-level color (theme-safe; Information inherits body), auto-scroll, open-folder /
  export-.zip / clear.
- Debug panel (in-shell, Tools + Settings>Advanced): verbose log dump, catalog
  counts + validation errors (now exposed via ICatalogProvider.ValidationErrors),
  system-info dump with copy.
- Global crash handler: Dispatcher/AppDomain/TaskScheduler -> structured Serilog log
  (no sensitive data) + friendly ErrorDialog (message, error code, Copy details,
  Report bug, Close); re-entrancy guard; recovers dispatcher exceptions.
- Report a bug (Help menu + from ErrorDialog): auto-gathered environment, export
  log .zip with review reminder, opens a prefilled GitHub issue. User-initiated; no
  auto-send (Privacy).
- Settings: new Logs (level / size / open / export / clear) and Advanced (run mode /
  config path / open Debug panel / reset-to-defaults — preserves terms + logs) sections;
  ISettingsService.LogLevel persisted and applied at startup.

EN/VI strings + AutomationProperties added. Dry-run deferred. 87 tests pass
(store/filter/report-template/catalog-errors/settings/DI/resx); 0-warning Release build;
Log Viewer smoke-verified live in dark mode.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-18 13:25:08 +07:00