Wiki Page Content

Differences between revisions 2 and 3
Revision 2 as of 2011-09-17 20:47:39
Size: 1298
Editor: SheenaSmith
Comment: update content - correct category name
Revision 3 as of 2013-08-08 20:09:34
Size: 1048
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 17: Line 16:
||'''category'''||the category to assign a priority to||
||'''priority'''||the [[SDL_LogPriority]] to assign; see [[#Remarks|Remarks]] for details||

<<Color2(green,'''category''' int values come from a singly-linked list? Accessed using SDL_LogGetPriority or is there a better/another way? Should there be a reference here or in Remarks?)>>
||'''category'''||the category to assign a priority to; see [[#category|Remarks]] for details||
||'''priority'''||the [[SDL_LogPriority]] to assign; see [[#priority|Remarks]] for details||
Line 28: Line 25:
''You can add useful comments here'' <<Anchor(category)>>
The '''category''' can be one of:
<<Include(SDL_LOG_CATEGORY, , , from="== Values ==", to="== Code Examples ==")>>
Line 30: Line 29:
<<Color2(green,Should a reference to [[SDL_LOG_CATEGORY]] be included here somewhere? Associated with the '''category''' param?)>>

'''priority''' may be one of the following ^or NULL ???^:
<<Anchor(priority)>>
The '''priority''' can be one of:

SDL_LogSetPriority

Use this function to set the priority of a particular log category.

Syntax

void SDL_LogSetPriority(int             category,
                        SDL_LogPriority priority)

Function Parameters

category

the category to assign a priority to; see Remarks for details

priority

the SDL_LogPriority to assign; see Remarks for details

Code Examples

You can add your code example here

Remarks

The category can be one of:

SDL_LOG_CATEGORY_APPLICATION

application log

SDL_LOG_CATEGORY_ERROR

error log

SDL_LOG_CATEGORY_ASSERT

assert log

SDL_LOG_CATEGORY_SYSTEM

system log

SDL_LOG_CATEGORY_AUDIO

audio log

SDL_LOG_CATEGORY_VIDEO

video log

SDL_LOG_CATEGORY_RENDER

render log

SDL_LOG_CATEGORY_INPUT

input log

SDL_LOG_CATEGORY_TEST

test log

SDL_LOG_CATEGORY_RESERVED#

# = 1-10; reserved for future SDL library use

SDL_LOG_CATEGORY_CUSTOM

reserved for application use; see Remarks for details

The priority can be one of:

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)


CategoryAPI, CategoryLog

None: SDL_LogSetPriority (last edited 2013-08-08 20:09:34 by Sam Lantinga)

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