Wiki Page Content

Differences between revisions 2 and 3
Revision 2 as of 2011-09-17 19:19:31
Size: 908
Editor: SheenaSmith
Comment: update content - correct category name
Revision 3 as of 2013-08-08 20:07:21
Size: 988
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 16: Line 15:
||'''category'''||the category to query ^or SDL_LOG_CATEGORY_APPLICATION ???^|| ||'''category'''||the category to query; see [[#category|Remarks]] for details||
Line 19: Line 18:
Returns the [[SDL_LogPriority]] for the requested category, SDL_application_priority if '''category''' is SDL_LOG_CATEGORY_APPLICATION, or SDL_default_priority otherwise,,; call [[SDL_GetError]]() for more information,,. Returns the [[SDL_LogPriority]] for the requested category; see [[#priority|Remarks]] for details.
Line 27: Line 26:
''You can add useful comments here''  <<Anchor(category)>>
 The '''category''' can be one of:
 <<Include(SDL_LOG_CATEGORY, , , from="== Values ==", to="== Code Examples ==")>>

 <<Anchor(priority)>>
 The returned priority will be one of:
 <<Include(SDL_LogPriority, , , from="Start Include here.", to="##End Include here.")>>

SDL_LogGetPriority

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

Syntax

SDL_LogPriority SDL_LogGetPriority(int category)

Function Parameters

category

the category to query; see Remarks for details

Return Value

Returns the SDL_LogPriority for the requested category; 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 returned priority will 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_LogGetPriority (last edited 2013-08-08 20:07:40 by Sam Lantinga)

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