xcode 8 disable extra information from the console

i have just updated to the new xcode 8 but when i run my application it give lots of console information but doesnot show the nslog print

for example

2016-06-25 13:49:34.221911 S[944:24445] bundleid: com.jupsoft.dams, enable_level: 0, persist_level: 0, propagate_with_activity: 0

2016-06-25 13:49:34.225342 S[944:24445] subsystem: com.apple.UIKit, category: HIDEvents, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 0

2016-06-25 13:49:34.230988 S[944:24437] Created DB, header sequence number = 256

2016-06-25 13:49:36.264446 S[944:24437] Created DB, header sequence number = 256

2016-06-25 13:49:36.594250 S[944:24437] subsystem: com.apple.BaseBoard, category: MachPort, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 0

2016-06-25 13:49:36.732426 S[944:24437] subsystem: com.apple.FrontBoard, category: Common, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 0

2016-06-25 13:49:40.446709 S[944:24444] subsystem: com.apple.network, category: , enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 2

2016-06-25 13:49:40.448913 S[944:24437] [] nw_endpoint_handler_start [1 damswebapi.jupsoft.com:80 initial path (null)]

2016-06-25 13:49:40.449740 S[944:24437] [] nw_connection_endpoint_report [1 damswebapi.jupsoft.com:80 initial path (null)] reported event path:start

2016-06-25 13:49:40.451351 S[944:24437] [] nw_connection_endpoint_report [1 damswebapi.jupsoft.com:80 waiting path (satisfied)] reported event path:satisfied

2016-06-25 13:49:40.454315 S[944:24437] subsystem: com.apple.SystemConfiguration, category: SCPreferences, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 2

2016-06-25 13:49:40.489830 S[944:24437] [] nw_connection_endpoint_report [1 damswebapi.jupsoft.com:80 in_progress resolver (satisfied)] reported event resolver:start_dns

2016-06-25 13:49:40.492240 S[944:24437] [] nw_endpoint_resolver_update [1 damswebapi.jupsoft.com:80 in_progress resolver (satisfied)] Adding endpoint handler for 180.179.213.203:80

2016-06-25 13:49:40.492708 S[944:24437] [] nw_connection_endpoint_report [1 damswebapi.jupsoft.com:80 in_progress resolver (satisfied)] reported event resolver:receive_dns

2016-06-25 13:49:40.493105 S[944:24437] [] nw_endpoint_resolver_start_next_child [1 damswebapi.jupsoft.com:80 in_progress resolver (satisfied)] starting child endpoint 180.179.213.203:80

2016-06-25 13:49:40.493581 S[944:24437] [] nw_endpoint_resolver_start_next_child [1 damswebapi.jupsoft.com:80 in_progress resolver (satisfied)] starting next child endpoint in 118ms

2016-06-25 13:49:40.494011 S[944:24437] [] nw_endpoint_handler_start [1.1 180.179.213.203:80 initial path (null)]

2016-06-25 13:49:40.494472 S[944:24437] [] nw_connection_endpoint_report [1.1 180.179.213.203:80 initial path (null)] reported event path:start

2016-06-25 13:49:40.495356 S[944:24437] [] nw_connection_endpoint_report [1.1 180.179.213.203:80 waiting path (satisfied)] reported event path:satisfied

2016-06-25 13:49:40.579538 S[944:24437] [] __nwlog_err_simulate_crash_libsystem libsystem simulate crash unavailable, [libsystem_network.dylib: nw_endpoint_get_hostname :: incorrect endpoint type 1]

2016-06-25 13:49:40.580297 S[944:24437] [] nw_endpoint_get_hostname incorrect endpoint type 1, dumping backtrace:

[x86_64] libnetcore-805.0.0.2.2

0 libsystem_network.dylib 0x000000010998937f __nw_create_backtrace_string + 123

1 libsystem_network.dylib 0x000000010998b46e nw_endpoint_get_hostname + 75

2 libnetwork.dylib 0x000000010b794be7 nw_endpoint_proxy_handler_should_use_proxy + 125

3 libnetwork.dylib 0x000000010b7a204f nw_endpoint_handler_path_change + 1509

4 libnetwork.dylib 0x000000010b7a18a2 nw_endpoint_handler_start + 570

5 libnetwork.dylib 0x000000010b7b8026 nw_endpoint_resolver_start_next_child + 2050

6 libdispatch.dylib 0x00000001096e21e8 _dispatch_call_block_and_release + 12

7 libdispatch.dylib 0x000000010970edee _dispatch_client_callout + 8

8 libdispatch.dylib 0x00000001096e9a1d _dispatch_queue_serial_drain + 239

9 libdi

2016-06-25 13:49:40.583644 S[944:24437] [] nw_connection_endpoint_report [1.1 180.179.213.203:80 in_progress socket-flow (satisfied)] reported event flow:start_connect

2016-06-25 13:49:40.611614 S[944:24437] [] nw_endpoint_flow_protocol_connected [1.1 180.179.213.203:80 in_progress socket-flow (satisfied)] Output protocol connected

2016-06-25 13:49:40.612962 S[944:24437] [] nw_endpoint_flow_connected_path_change [1.1 180.179.213.203:80 ready socket-flow (satisfied)] Connected path is satisfied

2016-06-25 13:49:40.613909 S[944:24437] [] nw_connection_endpoint_report [1.1 180.179.213.203:80 ready socket-flow (satisfied)] reported event flow:finish_connect

2016-06-25 13:49:40.614403 S[944:24437] [] nw_connection_endpoint_report [1 damswebapi.jupsoft.com:80 ready resolver (satisfied)] reported event flow:finish_connect

2016-06-25 13:49:40.614958 S[944:24437] [] nw_connection_endpoint_report [1.1 180.179.213.203:80 ready socket-flow (satisfied)] reported event flow:changed_viability

2016-06-25 13:49:40.615454 S[944:24437] [] nw_connection_endpoint_report [1 damswebapi.jupsoft.com:80 ready resolver (satisfied)] reported event flow:changed_viability

2016-06-25 13:49:44.566251 S[944:22982] subsystem: com.apple.UIKit, category: Touch, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 0

2016-06-25 13:49:44.569587 S[944:22982] subsystem: com.apple.UIKit, category: Gesture, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 0

2016-06-25 13:49:44.615500 S[944:22982] subsystem: com.apple.UIKit, category: GestureEnvironment, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 0

2016-06-25 13:49:44.618547 S[944:22982] subsystem: com.apple.UIKit, category: GestureExclusion, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 0

2016-06-25 13:50:11.136078 S[944:24446] [] nw_endpoint_handler_cancel [1 damswebapi.jupsoft.com:80 ready resolver (satisfied)]

2016-06-25 13:50:11.136828 S[944:24446] [] nw_endpoint_handler_cancel [1.1 180.179.213.203:80 ready socket-flow (satisfied)]

2016-06-25 13:50:11.137428 S[944:24446] [] nw_endpoint_flow_protocol_disconnected [1.1 180.179.213.203:80 cancelled socket-flow (null)] Output protocol disconnected


how to disable these log report

Replies

This is really working!


Thanks for saving my console.

This worked for me as well!


Thank you sooo much Seb!

This appears to still be happening on the now final version of Xcode 8 in the Mac App Store. Additionally, I've installed the Sierra GM seed and that seems to have way more Console output than usual as well!

Please keep in mind that setting this will keep you from seeing NSLog output when debugging on a device. In the Simulator you still get NSLog output with this set.

This works

Instead... The Apple's solution is?

Thanks a lot.


I've been terrified by the verbosity of the Android Studio console and now my Xcode console is infected as well. 😕

Here ya go. Just threw away my Sat morning because it was bugging me so much. The logging is turned on in plists found in


/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/Preferences/Logging/Subsystems


The offending process is configd_sim which loads the plists and outputs content to the console if logging is set in the plists.


You can find the coresponding plist by hunting for the subsystem: followed by the name of the plist. So for example, If you get output containing subsystem: com.apple.FrontBoard


Then modify or delete the com.apple.FrontBoard.plist


Made a visual of this on Twitter: https://twitter.com/LOLgrep/status/777219607434174464

Try this:

1- From Xcode menu open: Product > Scheme > Edit Scheme

2- On your Environment Variables set

OS_ACTIVITY_MODE
=
disable

Thank you SO MUCH!! These logs were totally unnecessary!

Genius! Can't believe that hack was necessary! I just started developing for Apple Watchi this week and the extraneous output made things very confusing. THANK YOU.

This question is answered here

For years I've been using my own NSLog, say XXLog that works exactly the same as NSLog but uses printf with a much simpler prefix than NSLog. Using this method allows for a consistent prefix that can be filtered in the console as jerry mentions above and that works "pretty good". 🙂


I've always had various levels of logging built in to my NSLog override so I can control the types of messages. With Xcode 8's spam-o-rama my clean systems become pointless!


Apple, stop spamming our console with useless (to us) messages!! :-)


I filed a radar on this. (29007266)

That did the trick! Now I see only my log output of my app.

Why is apple always hinding stuff like this??

There should be a button or an option within the console filter to enable/disable this.