首页 > 代码库 > Swift_3.0_取消杂乱无章的log输出

Swift_3.0_取消杂乱无章的log输出

一 举例: 输出的杂乱无章的东西

subsystem: com.apple.UIKit, category: HIDEventFiltered, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 1, privacy_setting: 2, enable_private_data: 02016-09-18 17:02:45.573686 Study_swift[20973:1392272] subsystem: com.apple.UIKit, category: HIDEventIncoming, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 1, privacy_setting: 2, enable_private_data: 02016-09-18 17:02:45.582685 Study_swift[20973:1392267] subsystem: com.apple.BaseBoard, category: MachPort, enable_level: 1, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 0, enable_private_data: 02016-09-18 17:02:45.594230 Study_swift[20973:1392002] subsystem: com.apple.UIKit, category: StatusBar, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 1, privacy_setting: 2, enable_private_data: 02016-09-18 17:02:45.614743 Study_swift[20973:1392002] subsystem: com.apple.BackBoardServices.fence, category: App, enable_level: 1, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 0, enable_private_data: 0

二. 解决

1.

技术分享

2.

技术分享

3. 如果写了OS_ACTIVITY_MODE = disable 还是不行.把对号重新勾选就可以了.

Swift_3.0_取消杂乱无章的log输出