SDL_LogInfo(3)

✨ SDL_LogInfo ✨

ok so bestie, this is the SDL3 FUNCTIONS era and we're talking about SDL_LogInfo(3) β€” the little logging baddie that drops a message into your log with SDL_LOG_PRIORITY_INFO. it's giving "just letting you know, no drama" energy. πŸ’–


🌸 NAME 🌸

SDL_LogInfo β€” logs a message with SDL_LOG_PRIORITY_INFO. that's it, that's the whole job. she's a simple queen. πŸ‘‘


πŸŽ€ SYNOPSIS πŸŽ€

#include <SDL3/SDL_log.h>

void SDL_LogInfo(int category, const char *fmt, ...);

look at her. clean. iconic. no cap.


πŸ’… FUNCTION PARAMETERS πŸ’…

  • category β€” the category of the message. like, which little folder does this log belong in, bestie? πŸ—‚οΈ
  • fmt β€” a printf() style message format string. you know the vibes, % tokens and all that. ✨
  • ... β€” extra parameters that match up with the % tokens in the fmt string, if there even are any. if your fmt has zero tokens, this part just sits there quietly, minding her business. 🫢

πŸ¦‹ THREAD SAFETY πŸ¦‹

ok this is the part where she ate: it is safe to call this function from any thread. any of them. all of them. go off. πŸ”₯


🌈 AVAILABILITY 🌈

this function has been available since SDL 3.2.0. so if you're on anything older... girl. upgrade. 😭


⭐ SEE ALSO ⭐

the whole friend group, fr fr:


ok and that's the whole page!! go log something cute, bestie. SDL_LogInfo is rooting for you. πŸ’–βœ¨

Simple Directmedia Layer 🌸 SDL 3.4.18 🌸 SDL_LogInfo(3) β€” mwah, that's a wrap, love u, byeeee πŸŽ€πŸ¦‹πŸ’…

πŸ“¦ where this page comes from