Skip to content

Remove SwiftyBeaver and rebuild logging on OSLog#454

Merged
chihchy merged 30 commits into
developfrom
feature/swifty-beaver-removal
Jul 1, 2026
Merged

Remove SwiftyBeaver and rebuild logging on OSLog#454
chihchy merged 30 commits into
developfrom
feature/swifty-beaver-removal

Conversation

@chihchy

@chihchy chihchy commented Jun 30, 2026

Copy link
Copy Markdown
Member

Summary

Removes the SwiftyBeaver dependency entirely and rebuilds the app's logging stack on Apple's unified logging (OSLog/Logger). Replaces the old file-based log viewer with a live in-app App Activity Logs feature backed by a new LogsClient module, and resyncs all localizations.

What changed

Logging backend

  • Drop the SwiftyBeaver package dependency and remove all of its logging plumbing.
  • Migrate every module to OSLog: AppFeature, AppTools, AppModels, DownloadClient, DatabaseClient, NetworkingFeature, ParserFeature, ReadingFeature, BackgroundProcessingClient, SettingFeature (WebView + LoginReducer).
  • Replace the SwiftyBeaverExt module with OSLogExt (shared app identifier), and rename LoggerClientLogsClient.
  • Declare a private let logger in each file that logs; drop noisy UI-layer log calls.

App Activity Logs feature

  • New AppActivityLog model and RunLogFile (identified by file URL) for per-run log files; app activity events logged at notice level.
  • New LogsClient module and a rebuilt log viewer with a live pump plus a Run picker (Current section + sheet, run time shown as HHmm, capped at 5 runs including current) and an "Open in Files" button.
  • Rename the General entry to "App activity logs"; reset the launch count per day; fix the title and empty-page baseline.
  • Delete the old LogsReducer/LogsView and the dead file-based log APIs in FileClient, LibraryClient, and ApplicationClient.

Localizations

  • Resync every locale to match en and add the new logs keys.
  • Drop the Localizable.strings file headers and the "Copied from" attribution comments.

Housekeeping

  • Move AppTools helpers under an Extensions/ folder.

@chihchy chihchy self-assigned this Jun 30, 2026
@chihchy chihchy added the enhancement New feature or request label Jun 30, 2026
@chihchy chihchy requested a review from a team as a code owner June 30, 2026 00:26
@chihchy chihchy merged commit 5da21f9 into develop Jul 1, 2026
1 check passed
@chihchy chihchy deleted the feature/swifty-beaver-removal branch July 1, 2026 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant