Wiki Page Content

Differences between revisions 6 and 7
Revision 6 as of 2013-08-08 20:27:33
Size: 1251
Editor: Sam Lantinga
Comment:
Revision 7 as of 2013-10-12 19:01:53
Size: 1269
Comment: Fixed search to exclude the right pages.
Deletions are marked like this. Additions are marked like this.
Line 31: Line 31:
<<FullSearchCached(category:CategoryEnum CategoryLog -SGEnumerations)>> <<FullSearchCached(category:CategoryEnum CategoryLog -title:SGEnumerations)>>
Line 35: Line 35:
##<<FullSearchCached(category:CategoryStruct CategoryLog -SGStructures)>> ##<<FullSearchCached(category:CategoryStruct CategoryLog -title:SGStructures)>>
Line 38: Line 38:
<<FullSearchCached(category:CategoryLog -CategoryEnum -CategoryStruct -SGFunctions)>> <<FullSearchCached(category:CategoryLog -CategoryEnum -CategoryStruct -title:SGFunctions)>>

Log Handling

Include File(s): SDL_log.h

Introduction

This category contains functions for handling simple log messages with categories and priorities.

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

Here's where the messages go on different platforms:

  • Windows

    debug output stream

    Android

    log output

    Others

    standard error output (stderr)

Messages longer than the maximum size (4096 bytes) will be truncated.

Enumerations

Functions


CategoryCategory

None: CategoryLog (last edited 2016-03-27 21:44:54 by PhilippWiesemann)

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