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

+1 Me too!

+1

And then? What happens next, we wait? Or somebody knows how to avoid this gigantic unnecessary output?

If you are using the simulator, this is covered in the "Known Issues" section of the release notes:

When debugging an app running on Simulator, logs may not be visible in the console.

Workaround: Use command + / in Simulator.app to open the system log in the Console app to view

NSLogs. (26457535)

------ via:guywithmazda

Same here. Filed Radar: 27266023

Doesn't seem to be fixed in Beta3 either.

It is very sad that this issue could have been worked around with the MCLog Xcode plug-in, had not Apple also disabled Xcode plug-ins in Xcode 8. The workaround I'm using instead is to copy the polluted log text into BBEdit, then use BBEdit's Text > Process Lines Containing… menu item, to Delete Lines matching a grep pattern. For me, this grep pattern works:


nw_| subsystem: |AHRegisterHelpBookWithURL|propagate_with_activity:| tcp_

I've filed Bug 27627663 on this issue.

I just thought of another workaround, which will be easier in some cases. Add some jibberish prefix, such as asdfjkl, to all of your log entries. Then enter this jibberish into the Filter field at the bottom of the Debug Area.

Still there in beta6. Apple is just spamming all developers with meaningless log, making the console pretty much useless. This is bad software engineering. The MacOS console is already useless due to the insane amount of spam from built-in apps, but please Apple, keep your ugliness out of my dev console.

The problem still exists in the GM. Version 8.0 (8A218a).


TBH, this is ridiculous. How could something as basic as this get through any kind of QA, particularly when the problem has been apparent for months?


Clearly, the Xcode team was working to the iPhone 7 announcement release schedule, and not to a quality schedule.


Just as clear: some of Apple's apps don't go through the same App Store review process that we are forced to go through...

So, I'm assuming no solution yet? I'm so lost. I'm totally new and just started learning Swift last week. All I want to do is connect and test my Heroku server. Sheesh

Here is how you resolve this.


Add OS_ACTIVITY_MODE = disable to your Environment Variables.

Here's a work around I was pointed to earlier today. Set OS_ACTIVITY_MODE = disable in your debug scheme.


Credit for the solution is https://twitter.com/rustyshelf/status/775505191160328194

Ouch. Seeing it in Xcode 8 GM as well. Hoping for a patch release now that things are final, some of these "lower priority" bugs may get addressed soon I hope.

For me it helped to add the following environment variable:

OS_ACTIVITY_MODE disable


Edit scheme (keyboard: cmd + <)

At the left choose "Run"

At the top right choose "Arguments"

At the bottom right add the environemnt variable as stated above