
This header declares the PG_LogConsole namespace and all functions for log processing.
Namespaces | |
| namespace | PG_LogConsole |
Defines | |
| #define | PG_LOGMTH_STDOUT 1 |
| Logmethod: STDOUT. | |
| #define | PG_LOGMTH_STDERR 2 |
| Logmethod: STDERR. | |
| #define | PG_LOGMTH_CONSOLE 4 |
| Logmethod: CONSOLE. | |
Enumerations | |
| enum | PG_LOG_LEVEL { PG_LOG_NONE, PG_LOG_ERR, PG_LOG_WRN, PG_LOG_MSG, PG_LOG_DBG } |
| ParaGUI logging level. More... | |
Functions | |
| void | LogVA (PG_LOG_LEVEL id, const char *Text, va_list ap) |
| Log a message. | |
| void | Done () |
| Clears the list of log messages and removes the log window. | |
| void | Update () |
| Updates the log window. | |
| void | SetLogLevel (PG_LOG_LEVEL newlevel) |
| Set the minimum log level. | |
| void | Show () |
| Show the log window. | |
| void | Hide () |
| Hide the log window. | |
| void | Toggle () |
| Toggle between log window shown/hidden. | |
| void | SetMethod (int method) |
| Set the log method. | |
| int | GetMethod () |
| Get the log method. | |
| void | SetConsoleKey (SDLKey key) |
| Set the key to toggle the console (default F12). | |
| SDLKey | GetConsoleKey () |
| Get the current key to toggle console. | |
| void | SetTitle (const char *title, PG_Label::TextAlign alignment=PG_Label::CENTER) |
| Set the title of the log console window. | |
| void | SetMaxLogLines (Uint32 max) |
| Set a limit for the amount of log lines (200 lines by default). | |
| void | PG_Log (PG_LOG_LEVEL id, const char *Text,...) |
| Log a message. | |
| void | PG_LogMSG (const char *fmt,...) |
| Log a message with log level "message". | |
| void | PG_LogERR (const char *fmt,...) |
| Log a message with log level "error". | |
| void | PG_LogWRN (const char *fmt,...) |
| Log a message with log level "warning". | |
| void | PG_LogDBG (const char *fmt,...) |
| Log a message with log level "debug". | |
|
|
Logmethod: CONSOLE. Send all log messages to the console window. |
|
|
Logmethod: STDERR. Send all log messages to stderr. |
|
|
Logmethod: STDOUT. Send all log messages to stdout. |
|
|
ParaGUI logging level.
|
|
|
Clears the list of log messages and removes the log window.
|
|
|
Get the current key to toggle console.
|
|
|
Get the log method.
|
|
|
Hide the log window.
|
|
||||||||||||||||
|
Log a message. Don't use this function directly, it is unconvenient and meant for internal use only. Use The PG_Log functions instead if you want to log something.
|
|
||||||||||||||||
|
Log a message.
|
|
||||||||||||
|
Log a message with log level "debug".
|
|
||||||||||||
|
Log a message with log level "error".
|
|
||||||||||||
|
Log a message with log level "message".
|
|
||||||||||||
|
Log a message with log level "warning".
|
|
|
Set the key to toggle the console (default F12).
|
|
|
Set the minimum log level.
|
|
|
Set a limit for the amount of log lines (200 lines by default).
|
|
|
Set the log method.
|
|
||||||||||||
|
Set the title of the log console window.
|
|
|
Show the log window.
|
|
|
Toggle between log window shown/hidden.
|
|
|
Updates the log window. This function creates a log window if it doesn't exist and writes all log messages to this window.
|