【问题标题】:how to view "log stream" log messages without truncation for ios如何在不截断 ios 的情况下查看“日志流”日志消息
【发布时间】:2019-12-13 17:23:23
【问题描述】:

我正在尝试使用 log steam 从 ios 模拟器获取日志,但对于冗长的日志,日志会被 <...> 截断

根据文档https://developer.apple.com/documentation/os/logging,不应截断实时流日志。我尝试了所有日志级别,但日志仍然被截断。

这就是我正在使用的:log stream --style=json --predicate 'processImagePath endswith "myapp"' --level=debug

【问题讨论】:

    标签: ios swift logging macos-high-sierra


    【解决方案1】:

    我建议你使用 CocoaLumberjack

    它有很多日志功能,可以帮助你的场景。

    【讨论】:

      猜你喜欢
      • 2021-01-01
      • 2012-09-12
      • 1970-01-01
      • 2019-07-16
      • 1970-01-01
      • 1970-01-01
      • 2020-05-24
      • 1970-01-01
      • 2011-05-02
      相关资源
      最近更新 更多