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β aprintf()style message format string. she's giving format string energy, she's giving%tokens....β additional parameters matching%tokens in thefmtstring, 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 π
SDL_Log(3)SDL_LogCritical(3)SDL_LogDebug(3)SDL_LogError(3)SDL_LogInfo(3)SDL_LogMessageV(3)SDL_LogTrace(3)SDL_LogVerbose(3)SDL_LogWarn(3)
π«Ά 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
- 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