从 iOS 应用程序中使用 os_log 捕获的访问日志

Access logs captured with os_log from within the iOS app

自 2021 年起,是否可以通过编程方式访问 iOS 应用程序中使用 os_log 捕获的日志,例如,通过网络发送日志存档?

在我链接的页面上,有一行:

You can also access log messages programmatically using the OSLog framework.

这会导致 OSLog 框架页面,仅适用于 macOS 10.15+。

有没有办法在不将设备连接到计算机并使用控制台应用程序或要求用户收集分析并将其邮寄给我们的情况下,在 iOS 上获取日志?

是的,有可能,可用于 iOS 15