Get my application log on device programmatically

In our app, we need to provide a feature for user to send application logs to us in case they run into unexpected errors. If we use OSLog feature to log our app's error/warning state, is there a way to programmatically to collect our app log from within our app so that we can provide a feature for user to send us the archived log files within our app?

is there a way to programmatically to collect our app log from within our app

Yes, and no. See this thread for info on how this is meant to work and why we’re not quite there yet )-:

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
I think it's more "no" than "yes"!
That depends on what platform you’re targeting. These days I’m mostly working on the Mac O-: where OSLogStore works just fine (-:

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
Get my application log on device programmatically
 
 
Q