Retrieving crash logs from iPhone programatically

I am trying to retrieve the crash logs from the iPhone programatically.

The use case is, we are testing many different apps on an iPhone as part of the CI/CD process. As part to this CI/CD process, when an app crashes, we want to retrieve the crash logs from the iPhone and send a notification to the development team with the crash log.

  1. So is there a way to extract the crash logs programatically.
  2. Also what is the naming convention for a crash log file that is created in an iPhone.

Thanks!

Retrieving crash logs from iPhone programatically
 
 
Q