---
title: Log
framework: driverkit
role: symbol
role_heading: Static Method
path: driverkit/iodispatchqueue/log
---

# Log

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

## Declaration

```occ
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 doc://com.apple.driverkit/documentation/DriverKit/IOLog is suitable for use.

## See Also

### Logging Dispatch Information

- [IODispatchLogFunction](driverkit/iodispatchlogfunction.md)
