Function SDL_LogSetOutputFunction

pub unsafe extern "C" fn SDL_LogSetOutputFunction(
    callback: Option<unsafe extern "C" fn(_: *mut c_void, _: i32, _: SDL_LogPriority, _: *const i8)>,
    userdata: *mut c_void,
)
Available on crate feature dep_sdl2 only.
Expand description

Replace the default log output function with one of your own.

\param callback an SDL_LogOutputFunction to call instead of the default \param userdata a pointer that is passed to callback

\since This function is available since SDL 2.0.0.

\sa SDL_LogGetOutputFunction