title: Accessing the console data from an iPhone application
body: <p>When my app crashes, I would like to save the latest console for debug purposes (especially to read system messages such as unrecognized selector)</p>
  
  <p>Is it possible to access the console programatically?</p>
  
  <p>UPDATE:</p>
  
  <p>I've found the answer in the documentations: using STDERR_FILENO.</p>
  
  <p>"Logs an error message to the Apple System Log facility (see man 3 asl). If the STDERR_FILENO file descriptor has been redirected away from the default or is going to a tty, it will also be written there."</p>