tags:

views:

273

answers:

1

Hi,

I want to log my iPhone application activity in a log file on the device. Could you please let me know how can I do that? How can I access the file?

Thanks.

A: 

Yes, you can do this. see

http://stackoverflow.com/questions/558568/how-do-i-debug-with-nsloginside-of-the-iphone-simulator

which reviews a number of approaches of getting log information from the simulator or from the iphone (tethered) while using the development environment.

Alex Brown
Yes, this is the way I am doing now, viewing the NSLog output/printf in XCode. However, I wanted the log info to be saved as a text file on the device.
ebaccount
If what you want is a way to get logs back from your developer hardware after using it untethered, or from non developer users, that's a different question you could ask.Do you expect these logs to show normal or abnormal behaviour?
Alex Brown
I have done this in the past, looking for evidence of it now in my git logs.
Alex Brown
You might find this page interesting.http://recapturing.blogspot.com/2009/05/getting-paths-to-directories-of-iphone.html
Alex Brown