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β theSDL_LogPriorityyou 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 β¨
SDL_ResetLogPriorities(3)β the "jk, put it back" button π¦SDL_SetLogPriority(3)β the "actually just this one category" version π
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
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms