Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Managing os_log <private> logging #58

Open
aharriscrowne opened this issue Sep 13, 2019 · 1 comment
Open

Managing os_log <private> logging #58

aharriscrowne opened this issue Sep 13, 2019 · 1 comment

Comments

@aharriscrowne
Copy link

It seems that because the OSLogWriter wraps os_log, all log messages are handled as format arguments and thus when not actively debugging an app. This substantially reduce the value of release build os_log. It also makes it impossible to separate a developer's own formatted arguments from accompanying static text.

@kabouzeid
Copy link

Currently this cannot be fixed because os_log can’t be properly wrapped in Swift. This is because swift doesn’t support „argument splatting“. For a detailed explanation see: https://stackoverflow.com/a/50942917

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

No branches or pull requests

2 participants