|
Size: 1163
Comment: remove draft
|
Size: 1251
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 17: | Line 17: |
| By default logs are quiet, but if you're debugging SDL you might want: | <<Include(SDL_LogPriority, , , from="Start Include Default Priority", to="## End Include Default Priority")>> |
| Line 19: | Line 19: |
| If you're debugging SDL you might want to call: |
Log Handling
Include File(s): SDL_log.h
Contents
Introduction
This category contains functions for handling simple log messages with categories and priorities.
The default log priorities are as follows:
SDL_LOG_CATEGORY_APPLICATION |
SDL_LOG_PRIORITY_INFO |
SDL_LOG_CATEGORY_ASSERT |
SDL_LOG_PRIORITY_WARN |
SDL_LOG_CATEGORY_TEST |
SDL_LOG_PRIORITY_VERBOSE |
everything else |
SDL_LOG_PRIORITY_CRITICAL |
If you're debugging SDL you might want to call:
SDL_LogSetAllPriority(SDL_LOG_PRIORITY_WARN);
Here's where the messages go on different platforms:
Windows
debug output stream
Android
log output
Others
standard error output (stderr)
Messages longer than the maximum size (4096 bytes) will be truncated.
Enumerations
