SDL_Log(3)
β¨ SDL_Log(3) β¨
okay bestie, so you found yourself in the SDL3 FUNCTIONS manual, section 3, and the star of the show today is SDL_Log π
π NAME π
SDL_Log β logs a message using SDL_LOG_CATEGORY_APPLICATION and SDL_LOG_PRIORITY_INFO. that's it, that's the whole job, and she does it flawlessly π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_log.h>
void SDL_Log(const char *fmt, ...);
like... look at her. iconic signature. no cap π«Ά
π¦ FUNCTION PARAMETERS π¦
fmtβ aprintf()style message format string. yes, the classic%token situation, she's versatile like that β¨...β extra parameters that match up with the%tokens infmt, if there are any. no tokens? no extras. simple as π
π₯ THREAD SAFETY π₯
you can call this from any thread. literally any of them. she's safe like that, no drama, no vibes ruined π
β AVAILABILITY β
this function has been around since SDL 3.2.0. so if you're on something older... bestie, upgrade π
π SEE ALSO π
the whole friend group, fr fr:
SDL_LogCritical(3)SDL_LogDebug(3)SDL_LogError(3)SDL_LogInfo(3)SDL_LogMessage(3)SDL_LogMessageV(3)SDL_LogTrace(3)SDL_LogVerbose(3)SDL_LogWarn(3)
Simple Directmedia Layer brought you this one, SDL 3.4.18 era, and yeah this page is literally called SDL_Log(3) in case you forgot where you were π
that's the whole page bestie, go log something cute πβ¨π¦
π¦ 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