Search code examples
ioscrashcodenameone

Codename One Retrieve Logs After Crash


Is there a way to retrieve logs after a crash with codename one? I have a process that does a large data conversion and my app crashes/closes while trying to complete it, only on iPhone.

I do have premium/crash protection on, but I don't get an email from this. I'm wondering if I can look at the logs and not have them wiped by closing/re-opening the app?


Solution

  • Opening the app appends to the logs, you can add a "Send Logs to developer" button or hidden feature and invoke Log.sendLogAsync() to email the log to you.

    If this doesn't include what you need I would also suggest including the native logging cn1lib since it might include information about the crash.