---
name: "SDL_LogOutputFunction"
section: "3type"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_LogOutputFunction"
---

# SDL\_LogOutputFunction(3type)

The prototype for the log output callback function.

## NAME

SDL\_LogOutputFunction - The prototype for the log output callback function.

## HEADER FILE

Defined in SDL3/SDL\_log.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**typedef void (SDLCALL \*SDL\_LogOutputFunction)(void \*userdata, int category, SDL\_LogPriority priority, const char \*message);**

## DESCRIPTION

This function is called by SDL when there is new text to be logged. A mutex is held so that this function is never called by more than one thread at once.

## FUNCTION PARAMETERS

- *userdata*

  what was passed as **userdata** to  **SDL\_SetLogOutputFunction** ().

- *category*

  the category of the message.

- *priority*

  the priority of the message.

- *message*

  the message being output.

## AVAILABILITY

This datatype is available since SDL 3.2.0.
