Skip to content

Log view: prune/clear buttons; settings for log size limit and retention - #16

Merged
codeling merged 1 commit into
mainfrom
fix/log-retention-185
Oct 7, 2026
Merged

codeling merged 1 commit into
mainfrom
fix/log-retention-185

Conversation

@codeling

@codeling codeling commented Oct 7, 2026

Copy link
Copy Markdown
Owner

Companion to codeling/bfstop (issue codeling/bfstop#185).

Changes

  • Settings: "Log File Size Limit (MB)" (logMaxSize) and "Keep Log Entries (Days)" (logKeepDays), next to the log level.
  • Log view: an info box about the current retention/size settings, a "Prune Log" button (rotates if too big and removes entries older than the retention, like the plugin's daily maintenance) and a "Clear Log" button (with confirmation modal, deletes the log files). Both need the core.delete permission and a valid token, via the new LogController.
  • Language strings in en-GB and de-DE (other languages fall back to en-GB).

Depends on the plugin PR (LoggerHelper::pruneByAge(), deleteLogFiles(), maxBytesFromMegabytes()).

Testing

Not run on a live Joomla site in my environment; PHP syntax, XML and language files were checked with the lint scripts.

🤖 Generated with Claude Code

https://claude.ai/code/session_017uE6PYkghPiTJRGH1QrWZx


Generated by Claude Code

…clear buttons to the log view

Adds the settings 'Log File Size Limit' and 'Keep Log Entries', shown with
the logging settings, and a 'Prune Log' and a 'Clear Log' button to the log
view (both need the permission to delete).

Part of codeling/bfstop#185.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017uE6PYkghPiTJRGH1QrWZx
@codeling
codeling merged commit 49422ed into main Oct 7, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants