SDL_LogTrace(3)

✨ SDL_LogTrace(3) ✨

okay bestie, quick vibe check: this is a page from the SDL3 FUNCTIONS section of the manual (the whole thing is the Simple Directmedia Layer, and yes we'll get to that at the end 🫢). It's all about SDL_LogTrace β€” your lil' bestie for whispering trace-level messages into the log. iykyk πŸ’…


πŸŽ€ NAME πŸŽ€

SDL_LogTrace β€” logs a message with SDL_LOG_PRIORITY_TRACE. literally that's it, that's the job, and she does it flawlessly ✨


🌸 SYNOPSIS 🌸

#include <SDL3/SDL_log.h>

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

πŸ¦‹ FUNCTION PARAMETERS πŸ¦‹

  • category β€” the category of the message. that's the lil' tag so you know what part of your app is yapping πŸ“’
  • fmt β€” a printf() style message format string. yes, the classic, iconic, never-miss format string πŸ’–
  • ... β€” additional parameters matching % tokens in the fmt string, if any. no tokens? no extra args, no problem, she's flexible like that 🧚

πŸ”₯ THREAD SAFETY πŸ”₯

It is safe to call this function from any thread. every thread can get a turn to speak, main character energy for everyone, no gatekeeping πŸ‘‘


⭐ AVAILABILITY ⭐

This function is available since SDL 3.2.0. so if you're on anything older... babe. upgrade. πŸ™ˆ


πŸ’œ SEE ALSO πŸ’œ


and that's the whole page, bestie, no notes πŸ’…πŸ’– brought to you by Simple Directmedia Layer, version SDL 3.4.18 β€” the source of all this iconicness β€” and the date lives in the footer alongside it, slay πŸŒˆβœ¨πŸ¦‹

πŸ“¦ where this page comes from