SDL_SetLogPriorities(3)

πŸ’– SDL_SetLogPriorities(3) πŸ’–

okay bestie, so this is a page from the SDL3 FUNCTIONS manual (yes, the SDL3 one, not the old one, we don't talk about the old one) and we're about to set ALL the log priorities at once. it's giving "one button, whole vibe reset". πŸŽ€


✨ NAME ✨

SDL_SetLogPriorities β€” set the priority of all log categories. yes, all of them. every single one. no cap. πŸ’…


✨ SYNOPSIS ✨

#include <SDL3/SDL_log.h>

void SDL_SetLogPriorities(SDL_LogPriority priority);

so it returns nothing (void, she gives nothing back and that's fine, she's a giver not a receiver 🫢) and it takes exactly one little argument. slay.


✨ FUNCTION PARAMETERS ✨

  • priority β€” the SDL_LogPriority you want to assign. that's it. that's the whole parameter. you hand her a priority and she's like "say less" and applies it everywhere. ✨

✨ THREAD SAFETY ✨

it is safe to call this function from any thread. go off, queen, call it from wherever you're standing, no drama, no locks of your own required. πŸ’š


✨ AVAILABILITY ✨

this one's been around since SDL 3.2.0. so if you're on something older than that… bestie, it's not there. sorry. 😭


✨ SEE ALSO ✨


ngl the vibe here is: one call, every log category, same priority. iconic behavior fr fr. 🌈

and that's the whole page, bestie!! 🌸 this cutie came to you from the Simple Directmedia Layer girlies, SDL 3.4.18 edition, and yes she's still serving SDL_SetLogPriorities(3) at the top and bottom of every page like the main character she is. πŸ’–βœ¨πŸŽ€ mwah, go log something. πŸ’…

πŸ“¦ where this page comes from