Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to see iphone logging (NSLog) after app restart?

How could I view iphone logging (eg NSLog) after app restart?

I'm interested in the answer both for using the (a) simulator and (b) an IOS device.

Background - In this case I have some issues no doubt in my code with how the application is supposed to launch, get previous state, and goto the controller/view it was at prior to it being terminated. Hence I want to see the logging as it starts up.

like image 732
Greg Avatar asked Apr 16 '11 06:04

Greg


People also ask

Where does NSLog go?

As such, you can rely on it being available for your debugging purposes on any Apple platform where your app will run. NSLog outputs messages to the Apple System Log facility or to the Console app (usually prefixed with the time and the process id).

How do I use the console log in iOS simulator?

To open Console from the iOS simulator, from the menu bar, select Debug > Open System Log .... To open Console from the Applications folder: Click Applications.

What is Os_log?

Sends a default-level message to the logging system. iOS 10.0+ iPadOS 10.0+ macOS 10.12+ Mac Catalyst 13.0+ tvOS 10.0+ watchOS 3.0+


1 Answers

For seeing device logs, you can use Organizer tool available in XCode(your device should be connected with system).

For simulator you will have to re-run application from XCode.

Thanks,

like image 86
Ravin Avatar answered Oct 03 '22 00:10

Ravin