Skip to content

feat(client): Add injectable structured logging - #20

Merged
philprime merged 1 commit into
mainfrom
feat/client-logging
Sep 15, 2026
Merged

philprime merged 1 commit into
mainfrom
feat/client-logging

Conversation

@philprime

Copy link
Copy Markdown
Member

Inject a swift-log Logger into the documentation client and add structured events across fetching, canonical fallbacks, search traversal, and failures. Expected misses and cancellations stay below error level, while request metadata includes paths, status codes, response sizes, and timing without logging response bodies or URL credentials.

Logging bootstrap, console output, and Sentry filtering remain unchanged. Tests capture events through a LogHandler backed by Synchronization.Mutex, with macOS 15 availability limited to the new logging tests.

Verification

Passed 87 unit tests, make analyze, and make build. Release view and search smoke tests returned valid JSON with empty stderr while telemetry was disabled.

@philprime
philprime marked this pull request as ready for review September 15, 2026 10:28
@philprime
philprime merged commit aef0660 into main Sep 15, 2026
15 checks passed
@philprime
philprime deleted the feat/client-logging branch September 15, 2026 11:03
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.

1 participant