Hi I am developing an iPhone app which is somewhat numerically intensive. I'd like to save "telemetry"/debug data to memory and then be able to retrieve that data. Data will most likely be in form of a .csv file. Some have recommended NSLog. I am tempted to use fwrite() calls but don't know how to retrieve the generated file. I have searched the web for this info and have not found relevant info. Thanks.
Recommended method for recording and retrieving debug data for iPhone app
Hi there,
Could you specify on how this data will be used and when will it be captured? Will you want to post-process it in some way? Is it sufficient to retrieve this data during development or would you like ability to send some analytics from your user audience?
Kacper
Yes, good questions. I anticipate that I will initially log a fair amount of data while the app is running, logging the data in a "batch mode." That is, I will log data for a number of minutes (10 - 20) and then retrieve that data and analyze it. I suspect that the quantity of data I log will decrease with time as I gain confidence in the app and fix errors.
When analyzing the data I expect that some of the tabular, numeric data might be plotted, possibly against other "truth" data using engineering tools such as Matlab. (For example, I might plot the filtered acceleration data recorded by the app vs the raw acceleration data sent to the iPhone app.) There might also be debug data consisting of time stamped text strings with an associated severity eg, info, warning, error, fatal. (For example, I might generate a log entry with the text version of verbal feedback produced by the app.)
So, yes, I will be processing the collected data, largely for development but then a smaller subset for ongoing verification of the app.
Thanks.