Wiki Page Content

Differences between revisions 4 and 5
Revision 4 as of 2011-12-31 20:51:41
Size: 1306
Editor: SheenaSmith
Comment: blank out descriptions, grey out last value, add remarks from header
Revision 5 as of 2013-08-08 20:25:13
Size: 1396
Editor: Sam Lantinga
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
||<tablewidth="100%" style="color: #FF0000;" :> DRAFT||
Line 27: Line 26:
By default logs are quiet, but if you're debugging SDL you might want: ## Start Include Default Priority
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`||
## End Include Default Priority

If you're debugging SDL you might want to call:
Line 29: Line 36:

By default the SDL_LOG_CATEGORY_APPLICATION category is enabled at the INFO level and all other [[SDL_LOG_CATEGORY]] categories are enabled at the CRITICAL level.

SDL_LogPriority

An enumeration of the predefined log priorities.

Values

SDL_LOG_PRIORITY_VERBOSE

SDL_LOG_PRIORITY_DEBUG

SDL_LOG_PRIORITY_INFO

SDL_LOG_PRIORITY_WARN

SDL_LOG_PRIORITY_ERROR

SDL_LOG_PRIORITY_CRITICAL

SDL_NUM_LOG_PRIORITIES

(internal use)

Code Examples

You can add your code example here

Remarks

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);


CategoryEnum, CategoryLog

None: SDL_LogPriority (last edited 2013-08-08 20:25:13 by Sam Lantinga)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit