I am using methods defined in https://developer.apple.com/documentation/os/logging to log messages in an iOS app. How can I read/access the logged messages programmatically?
The user can send feedback from inside the app, if anything in my app is not working. With the feedback, I would like to attach the logged messages to the feedback so that I can find out what happened.
Is there a way I can programmatically get all the messages that were logged by my app? Is there a way I can programmatically get the log file stored in the file system?