---
title: Log
framework: kernel
role: symbol
role_heading: Type Method
path: kernel/iodispatchqueue/3438195-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.documentation/documentation/kernel/1575337-iolog is suitable for use.

## See Also

### Logging Dispatch Information

- [IODispatchLogFunction](driverkit/iodispatchlogfunction.md)
