最終更新:2022-02-19 (土) 03:47:28 (769d)
macOS/ログ
https://developer.apple.com/documentation/os/logging/generating_log_messages_from_your_code
Generate a Log Message
- To generate a log message:
- In Swift, call the appropriate method of the Logger? structure in macOS 11 and later.
- In earlier versions of macOS, call os_log(_:log:type:) or one of the related log functions that take an OSLog object as a parameter.
- In Objective-C code, call os_log or an equivalent function that takes an os_log_t type as a parameter.