Macro

os_log_fault

Sends a fault-level message to the logging system.

Declaration

#define os_log_fault(log, format, ...)

Parameters

log

The OS_LOG_DEFAULT constant or a custom log object previously created by the os_log_create function.

format

A constant string or format string that produces a human-readable log message. See Formatting Log Messages.

Discussion

Fault-level messages sent by this function are always saved in the data store. They remain there until the storage quota is exceeded, at which point, the oldest messages are purged. Fault-level messages are intended for capturing system-level or multi-process errors only. If an activity object exists, logging at this level captures information for the entire process chain.

Calling this function is equivalent to calling the os_log_with_type function and specifying a log type of OS_LOG_TYPE_FAULT. Note that lengthy log messages may be truncated when stored by the logging system.

See Also

Generating Log Messages

os_log

Sends a default-level message to the logging system.

os_log_info

Sends an info-level message to the logging system.

os_log_debug

Sends a debug-level message to the logging system.

os_log_error

Sends an error-level message to the logging system.

os_log_with_type

Sends a message at a specific logging level, such as default, info, debug, error, or fault, to the logging system.