Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to access device log (not crash report) in Xcode organizer

Xcode (4.2) shows a log in the console view. The device logs view shows only crash logs. The console view contains NSLog output (as warnings?). I've never seen log events older than an hour or so. Where are all the older logs? How can i access NSLog output that was generated a week ago or so?

The answer to the question what happens to NSLog info when running on a device? states that i should see NSLog output in device logs. Is this or is this not the case?

like image 403
Matti Jokipii Avatar asked Oct 25 '25 09:10

Matti Jokipii


1 Answers

Your NSLogs are not saved to disk, you will only see the recent ones in the console. If you want to store your logs you will need to do it yourself. This comment has some good options:

https://stackoverflow.com/a/13761487/589224

like image 113
Patrick Tescher Avatar answered Oct 27 '25 22:10

Patrick Tescher



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!