Viewing os_log messages in device console

前端 未结 4 1361
情话喂你
情话喂你 2021-02-04 01:20

I\'m trying to get some logging out of my app through Unified Logging (os_log)

Here\'s the initialization of the log:

var osLog : OSLog = OSLog(subsystem         


        
4条回答
  •  梦毁少年i
    2021-02-04 01:42

    Log types .debug and .info are by default memory only (not saved on disk) so it won't be visible on the device console.

    Detailed info: https://developer.apple.com/documentation/os/logging?language=objc

    Also here is pretty nice WWDC: https://developer.apple.com/videos/play/wwdc2016/721/

提交回复
热议问题