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 β€” a printf() style message format string. yes, the same energy as printf(), 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:


⚠️ heads up bestie: this is the va_list flavour. if you've got actual arguments to pass and not a pre-packaged va_list, go check out SDL_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