<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "os",
  "identifier" : "/documentation/os/os_log_fault",
  "metadataVersion" : "0.1.0",
  "role" : "Macro",
  "symbol" : {
    "kind" : "Macro",
    "modules" : [
      "os"
    ],
    "preciseIdentifier" : "c:@macro@os_log_fault"
  },
  "title" : "os_log_fault"
}
-->

# os_log_fault

Sends a fault-level message to the logging system.

```
#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`](/documentation/os/os_log_create) function.

`format`

A constant string or format string that produces a human-readable log message. See [String Format Specifiers](https://developer.apple.com/library/archive/documentation/CoreFoundation/Conceptual/CFStrings/formatSpecifiers.html#//apple_ref/doc/uid/TP40004265).

## Discussion

Calling this function is equivalent to calling the `os_log_with_type` function and specifying a log type of <doc://com.apple.documentation/documentation/kernel/os_log_type_t/os_log_type_fault>.

## See Also

  <doc://com.apple.documentation/documentation/kernel/os_log_type_t/os_log_type_fault>



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)