Wiki Page Content

Differences between revisions 4 and 5
Revision 4 as of 2013-02-11 17:20:00
Size: 1371
Comment: Differentiated from SDL_LogMessage.
Revision 5 as of 2013-08-08 19:51:50
Size: 1390
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 19: Line 18:
||'''category'''||the category to ^specify^||
||'''priority'''||the [[SDL_LogPriority]] to ^specify^; see [[#Remarks|Remarks]] for details||
||'''category'''||the category of the message; see [[#category|Remarks]] for details||
||'''priority'''||the priority of the message; see [[#priority|Remarks]] for details||
Line 30: Line 29:
'''priority''' may be one of the following ^or NULL ???^: <<Anchor(category)>>
The '''category''' can be one of:
<<Include(SDL_LOG_CATEGORY, , , from="== Values ==", to="== Code Examples ==")>>

<<Anchor(priority)>>
The '''priority''' can be one of:
Line 32: Line 36:

<<Color2(green,Should there be some reference to [[SDL_LOG_CATEGORY]] for '''category'''?)>>

SDL_LogMessageV

Use this function to log a message with the specified category and priority. This version of SDL_LogMessage uses a stdarg variadic argument list.

Syntax

void SDL_LogMessageV(int             category,
                     SDL_LogPriority priority,
                     const char*     fmt,
                     va_list         ap)

Function Parameters

category

the category of the message; see Remarks for details

priority

the priority of the message; see Remarks for details

fmt

a printf() style message format string

ap

a variable argument list

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_LogMessageV (last edited 2016-05-11 20:19:53 by PhilippWiesemann)

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