Function SDL_SetLogOutputFunction

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

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

§Parameters

  • callback: an SDL_LogOutputFunction to call instead of the default.
  • userdata: a pointer that is passed to callback.

§Thread safety

It is safe to call this function from any thread.

§Availability

This function is available since SDL 3.2.0.

§See also