热门标签 | HotTags
当前位置:  开发笔记 > IOS > 正文

减少CoreData的调试输出?

如何解决《减少CoreData的调试输出?》经验,为你挑选了1个好方法。

I'm working on a iOS/macOS project where I'm using CoreData. It works fine, but it outputs enormous amounts of debugging info to the Console. This makes the Console unusable, since my print statements are buried in all the CoreData related stuff.

I have a pretty simple CoreData setup with fetching of some data, so these are not errors, just general event logs it seems. I have the same results on other projects I have used CoreData.

Any way to reduce/remove this logging to the console?

Some sample data (all data here):

CoreData: warning: CoreData+CloudKit: -[NSCloudKitMirroringDelegate _

performExportWithRequest:]_block_invoke_2(946): Finished export: 
CoreData: CloudKit: CoreData+CloudKit: -[NSCloudKitMirroringDelegate _finishedRequest:withResult:](2102): Finished request:  DC26CDEE-0AB6-42CD-81E5-996E7E7727F9 with result:  success: 1 madeChanges: 0 error: (null)
CoreData: CloudKit: CoreData+CloudKit: -[NSCloudKitMirroringDelegate _scheduleAutomatedExportWithLabel:activity:completionHandler:]_block_invoke(2170):  - Finished automatic export - AppActivationExport - with result:  success: 1 madeChanges: 0 error: (null)
CoreData: warning: CoreData+CloudKit: -[NSCloudKitMirroringDelegate finishedAutomatedRequestWithResult:](2115): Finished request ' DC26CDEE-0AB6-42CD-81E5-996E7E7727F9' with result:  success: 1 madeChanges: 0 error: (null)
CoreData: CloudKit: CoreData+CloudKit: -[NSCloudKitMirroringDelegate checkAndExecuteNextRequest](2073): : Checking for pending requests.
CoreData: CloudKit: CoreData+CloudKit: -[NSCloudKitMirroringDelegate checkAndExecuteNextRequest]_block_invoke(2088): : No more requests to execute.
CoreData: CloudKit: CoreData+CloudKit: -[NSCloudKitMirroringDelegate _scheduleAutomatedImportWithLabel:activity:completionHandler:](2140):  - Beginning automated import - ImportActivity - in response to activity:

小智.. 6

我有同样的问题。
这将禁用CoreData调试输出:
在“启动时传递的参数”中:
-com.apple.CoreData.Logging.stderr 0
对我有用。



1> 小智..:

我有同样的问题。
这将禁用CoreData调试输出:
在“启动时传递的参数”中:
-com.apple.CoreData.Logging.stderr 0
对我有用。


推荐阅读
author-avatar
卡瑙娇管
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有