<!--
{
  "availability" : [
    "DriverKit: -",
    "iOS: -",
    "iPadOS: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "DriverKit",
  "identifier" : "/documentation/DriverKit/IODispatchQueue/Log",
  "metadataVersion" : "0.1.0",
  "role" : "Static Method",
  "symbol" : {
    "kind" : "Static Method",
    "modules" : [
      "DriverKit"
    ],
    "preciseIdentifier" : "c:@S@IODispatchQueue@F@Log#*1C#*FI(#S0_).#S"
  },
  "title" : "Log"
}
-->

# Log

Log the current execution context with respect to any queues the current thread holds.

```
static void Log(const char *message, IODispatchLogFunction output);
```

## Parameters

`message`

A C string that contains the message to add to the log file.

`output`

The function address to use for logging the content. The address of [`IOLog`](/documentation/DriverKit/IOLog) is suitable for use.

---

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)