54#define SDL_MAX_LOG_MESSAGE 4096
66 SDL_LOG_CATEGORY_APPLICATION,
67 SDL_LOG_CATEGORY_ERROR,
68 SDL_LOG_CATEGORY_ASSERT,
69 SDL_LOG_CATEGORY_SYSTEM,
70 SDL_LOG_CATEGORY_AUDIO,
71 SDL_LOG_CATEGORY_VIDEO,
72 SDL_LOG_CATEGORY_RENDER,
73 SDL_LOG_CATEGORY_INPUT,
74 SDL_LOG_CATEGORY_TEST,
77 SDL_LOG_CATEGORY_RESERVED1,
78 SDL_LOG_CATEGORY_RESERVED2,
79 SDL_LOG_CATEGORY_RESERVED3,
80 SDL_LOG_CATEGORY_RESERVED4,
81 SDL_LOG_CATEGORY_RESERVED5,
82 SDL_LOG_CATEGORY_RESERVED6,
83 SDL_LOG_CATEGORY_RESERVED7,
84 SDL_LOG_CATEGORY_RESERVED8,
85 SDL_LOG_CATEGORY_RESERVED9,
86 SDL_LOG_CATEGORY_RESERVED10,
96 SDL_LOG_CATEGORY_CUSTOM
104 SDL_LOG_PRIORITY_VERBOSE = 1,
105 SDL_LOG_PRIORITY_DEBUG,
106 SDL_LOG_PRIORITY_INFO,
107 SDL_LOG_PRIORITY_WARN,
108 SDL_LOG_PRIORITY_ERROR,
109 SDL_LOG_PRIORITY_CRITICAL,
110 SDL_NUM_LOG_PRIORITIES
182extern DECLSPEC
void SDLCALL
SDL_Log(SDL_PRINTF_FORMAT_STRING
const char *fmt, ...) SDL_PRINTF_VARARG_FUNC(1);
203extern DECLSPEC
void SDLCALL
SDL_LogVerbose(
int category, SDL_PRINTF_FORMAT_STRING const
char *fmt, ...) SDL_PRINTF_VARARG_FUNC(2);
224extern DECLSPEC
void SDLCALL
SDL_LogDebug(
int category, SDL_PRINTF_FORMAT_STRING const
char *fmt, ...) SDL_PRINTF_VARARG_FUNC(2);
245extern DECLSPEC
void SDLCALL
SDL_LogInfo(
int category, SDL_PRINTF_FORMAT_STRING const
char *fmt, ...) SDL_PRINTF_VARARG_FUNC(2);
266extern DECLSPEC
void SDLCALL
SDL_LogWarn(
int category, SDL_PRINTF_FORMAT_STRING const
char *fmt, ...) SDL_PRINTF_VARARG_FUNC(2);
287extern DECLSPEC
void SDLCALL
SDL_LogError(
int category, SDL_PRINTF_FORMAT_STRING const
char *fmt, ...) SDL_PRINTF_VARARG_FUNC(2);
308extern DECLSPEC
void SDLCALL
SDL_LogCritical(
int category, SDL_PRINTF_FORMAT_STRING const
char *fmt, ...) SDL_PRINTF_VARARG_FUNC(2);
332 SDL_PRINTF_FORMAT_STRING const
char *fmt, ...) SDL_PRINTF_VARARG_FUNC(3);
355 const
char *fmt, va_list ap);
DECLSPEC void SDLCALL SDL_LogDebug(int category, SDL_PRINTF_FORMAT_STRING const char *fmt,...) SDL_PRINTF_VARARG_FUNC(2)
DECLSPEC void SDLCALL SDL_LogGetOutputFunction(SDL_LogOutputFunction *callback, void **userdata)
SDL_LogPriority
The predefined log priorities.
Definition: SDL_log.h:103
void(SDLCALL * SDL_LogOutputFunction)(void *userdata, int category, SDL_LogPriority priority, const char *message)
Definition: SDL_log.h:367
DECLSPEC void SDLCALL SDL_LogSetOutputFunction(SDL_LogOutputFunction callback, void *userdata)
DECLSPEC SDL_LogPriority SDLCALL SDL_LogGetPriority(int category)
DECLSPEC void SDLCALL SDL_LogMessageV(int category, SDL_LogPriority priority, const char *fmt, va_list ap)
DECLSPEC void SDLCALL SDL_LogVerbose(int category, SDL_PRINTF_FORMAT_STRING const char *fmt,...) SDL_PRINTF_VARARG_FUNC(2)
DECLSPEC void SDLCALL SDL_LogCritical(int category, SDL_PRINTF_FORMAT_STRING const char *fmt,...) SDL_PRINTF_VARARG_FUNC(2)
DECLSPEC void SDLCALL SDL_Log(SDL_PRINTF_FORMAT_STRING const char *fmt,...) SDL_PRINTF_VARARG_FUNC(1)
DECLSPEC void SDLCALL SDL_LogMessage(int category, SDL_LogPriority priority, SDL_PRINTF_FORMAT_STRING const char *fmt,...) SDL_PRINTF_VARARG_FUNC(3)
DECLSPEC void SDLCALL SDL_LogInfo(int category, SDL_PRINTF_FORMAT_STRING const char *fmt,...) SDL_PRINTF_VARARG_FUNC(2)
DECLSPEC void SDLCALL SDL_LogSetAllPriority(SDL_LogPriority priority)
DECLSPEC void SDLCALL SDL_LogWarn(int category, SDL_PRINTF_FORMAT_STRING const char *fmt,...) SDL_PRINTF_VARARG_FUNC(2)
DECLSPEC void SDLCALL SDL_LogSetPriority(int category, SDL_LogPriority priority)
DECLSPEC void SDLCALL SDL_LogError(int category, SDL_PRINTF_FORMAT_STRING const char *fmt,...) SDL_PRINTF_VARARG_FUNC(2)
DECLSPEC void SDLCALL SDL_LogResetPriorities(void)
SDL_LogCategory
The predefined log categories.
Definition: SDL_log.h:65