Replace the default log output function with one of your own.
Defined in <SDL3/SDL_log.h>
void SDL_SetLogOutputFunction(SDL_LogOutputFunction callback, void *userdata);
SDL_LogOutputFunction | callback | an SDL_LogOutputFunction to call instead of the default. |
void * | userdata | a pointer that is passed to callback . |
It is safe to call this function from any thread.
This function is available since SDL 3.1.3.