禁用Google App Measurement调试日志 [英] Disable Google App Measurement debug logging

查看:1696
本文介绍了禁用Google App Measurement调试日志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Xcode 7.2中,如何禁用这些调试/应用程序测量消费显示:

On Xcode 7.2, how can I disable these debug/app measurements intempestive displays :

2016-01-07 11:52:53.085 MyApp[1457:] <GMR/INFO> App measurement v.1302000 started
2016-01-07 11:52:53.091 MyApp[1457:] <GMR/INFO> To enable debug logging set the following application argument: -GMRDebugEnabled (see http://goo.gl/Y0Yjwu)
2016-01-07 11:52:53.091 MyApp[1457:] <GMR/DEBUG> Debug logging enabled
2016-01-07 11:52:53.092 MyApp[1457:] <GMR/DEBUG> App measurement is monitoring the network status
2016-01-07 11:52:53.188 MyApp[1457:] <GMR/DEBUG> App measurement is ready to receive events
2016-01-07 11:52:53.201 MyApp[1457:] <GMR/DEBUG> No network. Upload task will not be scheduled
2016-01-07 11:52:53.202 MyApp[1457:] <GMR/DEBUG> Scheduling user engagement timer
2016-01-07 11:52:53.202 MyApp[1457:] <GMR/DEBUG> Timer scheduled to fire in approx. (s): 3600
2016-01-07 11:52:53.203 MyApp[1457:] <GMR/INFO> App measurement enabled
2016-01-07 11:52:53.237 MyApp[1457:] <GMR/DEBUG> Scheduling user engagement timer
2016-01-07 11:52:53.242 MyApp[1457:] <GMR/DEBUG> Canceling active timer
2016-01-07 11:52:53.245 MyApp[1457:] <GMR/DEBUG> Timer scheduled to fire in approx. (s): 3600
2016-01-07 11:52:53.270 MyApp[1457:] <GMR/DEBUG> Network status has changed. code, status: 3, Connected
2016-01-07 11:52:53.272 MyApp[1457:] <GMR/DEBUG> Timer scheduled to fire in approx. (s): 1614.930058836937
2016-01-07 11:52:53.272 MyApp[1457:] <GMR/DEBUG> Upload task scheduled to be executed in approx. (s): 1614.930058836937

自从一段时间以来,我打扰了我...

It bothers me since a while...

谢谢!

编辑:我尝试了 - noGMRDebugEnabled 标志,重新安装应用程序没有 - GMRDebugEnabled ,重置内容和设置,重新启动Xcode ...没有任何作用: - (

Edit : I tried the -noGMRDebugEnabled flag, reinstalling the app without -GMRDebugEnabled, reset Content and settings, restarting Xcode ... nothing works :-(

推荐答案

最后,我发现它在 Google API文档

在GoogleService-Info.plist文件中,您必须添加一个名为 IS_MEASUREMENT_ENABLED 的键,将其设置为布尔值,然后选择NO值
这将禁用App测量功能并在控制台中显示: p>

In the GoogleService-Info.plist file, you have to add a key named IS_MEASUREMENT_ENABLED, set it as a boolean, and select NO value. This will disable App measurement feature and display in the console :

2016-07-03 10:51:38.522 MyApp[313:] <GMR/INFO> App measurement disabled

感谢您的所有答案!

这篇关于禁用Google App Measurement调试日志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆