os_log_with_type
Sends a message at a specific logging level, such as default, info, debug, error, or fault, to the logging system.
Declaration
#define os_log_with_type(log, type, format, ...)Parameters
- log:
The Os_log_default constant or a custom log object previously created by the Os_log_create function.
- type:
A log type constant, such as Os_log_type_default, Os_log_type_info, Os_log_type_debug, Os_log_type_error, or Os_log_type_fault, that specifies the level of logging to perform.
- format:
A constant string or format string that produces a human-readable log message. See TP40004265.
Discussion
Calling this function doesn’t ensure that the system logs a message. Logging always occurs in accordance with the behavior settings of the provided log object and log type. Note that the logging system may truncate lengthy log messages when it stores them.