nsscreencast / comments

Public comments on NSScreencast.com
0 stars 0 forks source link

Private Data and the log Utility #178

Open subdigital opened 3 years ago

subdigital commented 3 years ago

Written on 07/06/2018 04:06:18

URL: https://nsscreencast.com/episodes/345-unified-logging-private-data-log-utility

subdigital commented 3 years ago

originally written by Idris Raja on 07/16/2018 17:46:56

Is there a way to turn off logging when in a production environment -- ie running on a customer's iOS device -- but leave logging on during development and testing?

subdigital commented 3 years ago

originally written by subdigital on 07/16/2018 18:04:45

On a customer’s device, this is all in memory only, and won’t adversely affect performance (diagnosticsd does the heavy lifting for you in the background, and even then it’s not persisted to disk unless an error occurs or a profile is enabled that forces it to).
This is why you sometimes hear Apple say, when requesting a sysdiagnose, to trigger it immediately after the behavior occurs, otherwise those info logs might be lost.

subdigital commented 3 years ago

originally written by Idris Raja on 07/18/2018 02:45:47

At the risk of being off-topic, how does one typically retrieve these logs from a customer's device?

subdigital commented 3 years ago

originally written by subdigital on 07/18/2018 14:17:40

It’s not ideal, but you have to get them to trigger a sysdiagnose, Air Drop it to their computer (or use Dropbox or something) and then share it with you. It will be a few hundred MB, so it can’t be emailed typically.
You can then take this file and open it with Console to do your analysis.
This is the biggest drawback to the current system as far as I can tell. Hopefully they’ll make a way where an application can ask the logging system to persist a given search so you could send just that to support (within your app).