These functions can be used for any purpose logging
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. |
|
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.
|
|
Set the key to toggle the console (default F12).
|
|
Set the minimum log level.
|
|
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. |