Wiki Page Content

Differences between revisions 3 and 4
Revision 3 as of 2011-09-17 19:12:25
Size: 1515
Editor: SheenaSmith
Comment: update content - correct category name
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
Deletions are marked like this. Additions are marked like this.
Line 12: Line 12:
||SDL_LOG_PRIORITY_VERBOSE||= 1||
||SDL_LOG_PRIORITY_DEBUG||description||
||SDL_LOG_PRIORITY_INFO||description||
||SDL_LOG_PRIORITY_WARN||description||
||SDL_LOG_PRIORITY_ERROR||description
||
||SDL_LOG_PRIORITY_CRITICAL||description||
||
SDL_NUM_LOG_PRIORITIES||description||
||SDL_LOG_PRIORITY_VERBOSE||||
||SDL_LOG_PRIORITY_DEBUG||||
||SDL_LOG_PRIORITY_INFO||||
||SDL_LOG_PRIORITY_WARN||||
||SDL_LOG_PRIORITY_ERROR||
||
||SDL_LOG_PRIORITY_CRITICAL||||
||<rowstyl
e="color: #808080;">SDL_NUM_LOG_PRIORITIES||(internal use)||
Line 27: Line 27:
''You can add useful comments here'' By default logs are quiet, but if you're debugging SDL you might want:
 {{{SDL_LogSetAllPriority(SDL_LOG_PRIORITY_WARN);}}}
Line 29: Line 30:
<<Color2(green,There are comments about several of the values that could be included here. Ex: WARN is useful for debugging, CRITICAL is default for most log categories, etc. Should they be included here?)>>

<<Color2(green,Does this belong on this page as well?)>>

DRAFT

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

By default logs are quiet, but if you're debugging SDL you might want:

  • SDL_LogSetAllPriority(SDL_LOG_PRIORITY_WARN);

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.


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