-
Notifications
You must be signed in to change notification settings - Fork 42
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
OSLogStore
does not produce logs written to console by platformLogWriter
on iOS
#339
Comments
It looks like that's for reading, not writing: https://steipete.com/posts/logging-in-swift/. Unless I'm reading that wrong. |
Ah that's right, it's for reading only. The problem that I ran into is that |
LogWriter
for iOS OSLogStore
OSLogStore
doesn't seem to produce logs written to console by platformLogWriter
on iOS
This bug is still present as of Kermit v2.0.2. And it's a critical bug. If the OSLogWriter is functioning properly, the log entries will be visible/available in the following locations:
The first 2 are working fine currently, but the last isn't. The OSLogStore is an API for reading log entries that have been sent to OSLog system. For example, your application might want to export a log file, and send it to the development team for debugging. To do this, you MUST call the OSLogStore API within your code. If you do this now, with the current codebase, all log entries sent from Kermit result in a log message of Unfortunately this renders Kermit unsuitable for use with many iOS applications, because it means:
To be clear: Kermit works fine if you're debugging on your own device when plugged into Xcode. But if you need to debug problems from actual users of your app, then you MUST use OSLogStore, and Kermit has unfortunately broken all log entries within OSLogStore. |
OSLogStore
doesn't seem to produce logs written to console by platformLogWriter
on iOSOSLogStore
does not produce logs written to console by platformLogWriter
on iOS
Totally agree with @robbiehanson .
|
Any updates on this? It is frustrating to not be able to see logs on a device without Xcode attached. |
* Replacing usage of private API with public API, by switching to cInterop. Fixes issue #339 * Update build.gradle.kts --------- Co-authored-by: Kevin Schildhorn <kevin.schildhorn@gmail.com>
The relative PR has been merged in. It should be available in the next release. |
https://developer.apple.com/documentation/oslog/oslogstore
The text was updated successfully, but these errors were encountered: