我正在尝试使用 log steam
从 ios 模拟器获取日志但对于冗长的日志,日志会被截断为 <...>
根据文档 https://developer.apple.com/documentation/os/logging不应截断实时流日志。我已经尝试了所有日志级别,但日志仍然被截断。
这就是我正在使用的:log stream --style=json --predicate 'processImagePath endswith "myapp"' --level=debug
最佳答案
我建议你使用 CocoaLumberjack
它有很多日志记录功能,可以帮助您的场景。
关于ios - 如何在不截断 ios 的情况下查看 "log stream"日志消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57371254/