SDL_LogMessage(3)

πŸ’– SDL_LogMessage(3) β€” the SDL3 FUNCTIONS glow-up πŸ’–

okay bestie so we're in the SDL3 FUNCTIONS corner of the manual and today's main character is SDL_LogMessage. she logs a message with the category and priority you pick. that's it. that's the whole vibe. ✨


🌸 NAME 🌸

SDL_LogMessage β€” Log a message with the specified category and priority.


πŸŽ€ SYNOPSIS πŸŽ€

#include <SDL3/SDL_log.h>

void SDL_LogMessage(int category,
                SDL_LogPriority priority,
                const char *fmt, ...);

πŸ’… FUNCTION PARAMETERS πŸ’…

  • category β€” the category of the message. iykyk, it's the little tag that says where this log came from.
  • priority β€” the priority of the message. how loud are we being rn, basically.
  • fmt β€” a printf() style message format string. she's giving format string energy, she's giving % tokens.
  • ... β€” additional parameters matching % tokens in the fmt string, if any. no % tokens? then no extra args, fr fr.

🧚 THREAD SAFETY 🧚

It is safe to call this function from any thread. no cap, any thread, go wild. πŸ¦‹


⭐ AVAILABILITY ⭐

This function is available since SDL 3.2.0. so if you're on anything older, bestie, it's not there. sorry. 😭


🌈 SEE ALSO 🌈


🫢 go log something, bestie. the terminal wants to hear you. obsessed. πŸ‘‘

k bye, this page was served fresh from <strong>Simple Directmedia Layer</strong>, version <strong>SDL 3.4.18</strong> πŸ’œ mwah πŸ’‹

πŸ“¦ where this page comes from