---
title: IOLog
framework: kernel
role: symbol
role_heading: Function
path: kernel/1575337-iolog
---

# IOLog

Log a message to console in text mode, and /var/log/system.log.

## Declaration

```occ
int IOLog(const char *format, ...);
```

```occ
void IOLog(const char *format, ...);
```

## Parameters

- `format`: A printf() style format string (see printf(3) documentation).
- `other`: arguments described by the format string.

## Discussion

Discussion This function allows a driver to log diagnostic information to the screen during verbose boots, and to a log file found at /var/log/system.log. IOLog should not be called from interrupt context.

## See Also

### Logging

- [OS_os_log](kernel/os_os_log.md)
- [IOLogv](kernel/1575323-iologv.md)
- [os_log_create](kernel/1643798-os_log_create.md)
- [os_log_debug_enabled](kernel/1643808-os_log_debug_enabled.md)
- [os_log_info_enabled](kernel/1643817-os_log_info_enabled.md)
