SDL_LogMessageV(3)
π SDL_LogMessageV(3) π
okay bestie, welcome to the SDL3 FUNCTIONS section of the manual, and today's main character is SDL_LogMessageV. she's the one who logs a message for you with the category and priority you pick. no cap.
β¨ NAME β¨
SDL_LogMessageV β logs a message with the specified category and priority π«Ά
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_log.h>
void SDL_LogMessageV(int category,
SDL_LogPriority priority,
const char *fmt, va_list ap);
like... look at her. five arguments in the signature, one of them is a whole va_list. she's giving variadic royalty π
π FUNCTION PARAMETERS π
categoryβ the category of the message. that's it, that's the vibe check.priorityβ the priority of the message. how loud do you want this in the logs, bestie?fmtβ aprintf()style message format string. yes, the same energy asprintf(), so format specifiers go here πapβ a variable argument list. this is the pre-chewed-up args version, iykyk.
π¦ THREAD SAFETY π¦
it is safe to call this function from any thread. literally any thread. go wild, she doesn't care, she was built for this π
β AVAILABILITY β
this function is available since SDL 3.2.0. if you're on something older... ngl, she's not there yet π
π SEE ALSO π
your recommended reading list, all iconic, all linked up:
SDL_Log(3)SDL_LogCritical(3)SDL_LogDebug(3)SDL_LogError(3)SDL_LogInfo(3)SDL_LogMessage(3)SDL_LogTrace(3)SDL_LogVerbose(3)SDL_LogWarn(3)
β οΈ heads up bestie: this is theva_listflavour. if you've got actual arguments to pass and not a pre-packagedva_list, go check outSDL_LogMessage(3)instead. different girl, same family π
okay that's the whole page, and this one came to you from Simple Directmedia Layer, SDL 3.4.18, dated way back on the SDL_LogMessageV(3) page. slay, bye, 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