Change the log level on iOS 10 (Unified Logging) with Console.app

前端 未结 2 999
半阙折子戏
半阙折子戏 2020-12-15 19:21

This is so simple but: how on earth do I set the level of log messages I see in Console.app, if I am trying to use iOS10\'s new \"Unified Logging & Activity Tracing\" AP

相关标签:
2条回答
  • 2020-12-15 19:27

    Hilariously, the answer is that you just go to the Console.app's menu bar and select:

    • Action / Include Info Messages
    • Action / Include Debug Messages

    0 讨论(0)
  • 2020-12-15 19:47

    Xcode 10.0 beta 6 (likely others too) won’t show debug messages logged from the simulator even after enabling Include Info Messages, Include Debug Messages in the Console.app. AFAIK there is no fix for this.

    To see debug logs sent from the simulator you have to stream from a terminal instead:

    xcrun simctl spawn booted log stream --debug --predicate 'subsystem == "es.com.jano.Myapp"'
    
    0 讨论(0)
提交回复
热议问题