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

# os_log_debug

Sends a debug-level message to the logging system.

```
#define os_log_debug(log, format, ...)
```

## Parameters

`log`

The [`OS_LOG_DEFAULT`](/documentation/os/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_debug>.

## See Also

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



---

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)