Why does Xcode 8 (iOS 10) print [LogMessageLogging] <private>
in the console, when I call the map view?
Can any one give some suggestions?
Why does Xcode 8 (iOS 10) print [LogMessageLogging] <private>
in the console, when I call the map view?
Can any one give some suggestions?
Example (ObjC):
Example (Swift):
At the moment logging strings seems broken in Swift (https://openradar.appspot.com/radar?id=6068967584038912), so we need manually bridge C functions to Swift:
UPDATE 01. Radar 28599032 is fixes and not applicable for Xcode 10.
It's a new feature in MacOS 10.12 (Sierra), a unified logging system that
Basically, you can specify at which level you want to log something through os_log and it should make Console more usable. To turn off the 'private' setting for the project you're working in, type this in the Terminal:
More information at Customizing Logging Behavior While Debugging
UPDATE:
As @SunilChauhan pointed out, the link above is now broken. Searching for logging and NSLog gets you a lot of results, none relevant. However, searching on the number in the original links brought me to an example project named Logging: Using the os_log APIs which promises to:
I don't have time right now to try out this project, I hope it's of use to someone.
The per-bundle-id console command shown in the other answer was not working for me.
This worked:
https://superuser.com/questions/1311578/in-console-app-how-can-i-reveal-to-what-private-tags-are-actually-referring