Skip to content

Persist App Logs with 7-day TTL, Pagination, and Infinite Scroll#2808

Merged
veloce merged 5 commits intolichess-org:mainfrom
r3econ:offline-logs
Mar 21, 2026
Merged

Persist App Logs with 7-day TTL, Pagination, and Infinite Scroll#2808
veloce merged 5 commits intolichess-org:mainfrom
r3econ:offline-logs

Conversation

@r3econ
Copy link
Copy Markdown
Contributor

@r3econ r3econ commented Mar 20, 2026

  • Logs now survive restarts and are kept for 7 days (same TTL as HTTP logs), automatically cleaned up on app open.
  • Each log record is fire-and-forget saved to the database via storage provider. Log fetch is paginated; UI contains pull-to-refresh, supports infinite scroll.
  • Resolves Persist app logs #2516

Architecture

  • AppLogStorage (SQLite CRUD, app_log table)
    • AppLogEntry (Freezed model for database rows)
    • AppLogPage (pagination wrapper)
  • AppLogPaginator - Riverpod notifier with next(), deleteAll(), refresh()

Demo

logz.mov

Copy link
Copy Markdown
Contributor

@veloce veloce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great stuff! Thank you.

@veloce veloce merged commit 2c48aa7 into lichess-org:main Mar 21, 2026
1 check 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.

Persist app logs

2 participants