如何在 UIautomation ios 中创建嵌套日志
如何在 UIautomation ios 中创建嵌套日志(如 logElementTree() 生成的日志)
我尝试执行以下操作:
UIALogger.logStart("Log parent Started");
UIALogger.logStart("Log child Started");
UIALogger.logMessage("Message 1");
UIALogger.logPass("Log child passed");
UIALogger.logPass("Log Parent passed");
但这并不是在“仪器”窗口中创建嵌套日志
How to create a nested logs in UIautomation ios like the one produced by logElementTree()
I tried doing the following:
UIALogger.logStart("Log parent Started");
UIALogger.logStart("Log child Started");
UIALogger.logMessage("Message 1");
UIALogger.logPass("Log child passed");
UIALogger.logPass("Log Parent passed");
But this isn't creating a nested logs in the Instruments window
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是不可能的。无论出于何种原因,Apple 都没有公开像
logElementTree()
那样的嵌套日志输出功能。每次调用logStart()
都会重新开始日志分组。请在 bugreporter.apple.com 提交错误。尽管感觉就像一个黑洞,错误进去了,什么也完成不了,但他们确实使用错误报告器来确定下一步要修复什么。
This is not possible. For whatever reason, Apple isn't exposing the ability to have a nested log output like you get with
logElementTree()
. Every call tologStart()
starts the log grouping over again.Do file a bug over at bugreporter.apple.com. Even though it feels like a black hole where bugs go in and nothing gets accomplished, they really do use the bug reporter to determine what to fix next.