mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-05 03:17:42 +00:00
Added the environment variable SDL_LOGGING to control default log output
This commit is contained in:
parent
dcd26a80e5
commit
12bdb2b4d0
7 changed files with 357 additions and 17 deletions
|
@ -1282,6 +1282,22 @@ extern "C" {
|
|||
*/
|
||||
#define SDL_HINT_LINUX_JOYSTICK_DEADZONES "SDL_LINUX_JOYSTICK_DEADZONES"
|
||||
|
||||
/**
|
||||
* A variable controlling the default SDL log levels.
|
||||
*
|
||||
* This variable is a comma separated set of category=level tokens that define the default logging levels for SDL applications.
|
||||
*
|
||||
* The category can be a numeric category, one of "app", "error", "assert", "system", "audio", "video", "render", "input", "test", or `*` for any unspecified category.
|
||||
*
|
||||
* The level can be a numeric level, one of "verbose", "debug", "info", "warn", "error", "critical", or "quiet" to disable that category.
|
||||
*
|
||||
* You can omit the category if you want to set the logging level for all categories.
|
||||
*
|
||||
* If this hint isn't set, the default log levels are equivalent to:
|
||||
* "app=info,assert=warn,test=verbose,*=error"
|
||||
*/
|
||||
#define SDL_HINT_LOGGING "SDL_LOGGING"
|
||||
|
||||
/**
|
||||
* When set don't force the SDL app to become a foreground process
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue