如何在 UIautomation ios 中创建嵌套日志

发布于 2024-12-28 18:03:30 字数 335 浏览 3 评论 0原文

如何在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

万劫不复 2025-01-04 18:03:30

这是不可能的。无论出于何种原因,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 to logStart() 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文