Skip to content

feat: add os_log logging for Console.app diagnostics#7

Open
wrsmith108 wants to merge 1 commit intoykdojo:mainfrom
wrsmith108:main
Open

feat: add os_log logging for Console.app diagnostics#7
wrsmith108 wants to merge 1 commit intoykdojo:mainfrom
wrsmith108:main

Conversation

@wrsmith108
Copy link

Summary

  • Adds os.log (Logger) with subsystem com.supervoiceassistant so errors are always visible in Console.app, regardless of how the app is launched
  • Covers TTS errors, Gemini API errors, recording failures, and transcription errors across 3 categories: App, AudioCollector, StreamingPlayer
  • Updates CLAUDE.md with logging documentation and log show query examples

Test plan

  • Build succeeds with swift build
  • Trigger a TTS error (e.g. invalid API key) and verify it appears in Console.app via log show --predicate 'subsystem == "com.supervoiceassistant"' --last 5m
  • Verify normal TTS playback still works without regressions

Previously all logging used print() which was lost when running as a .app
bundle. Adds Logger with subsystem "com.supervoiceassistant" and categories
App, AudioCollector, and StreamingPlayer so errors are queryable via
log show regardless of how the app is launched.
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

Comments