|
Functions for logging messages, warnings, and errors to the console. More...
Classes | |
class | ConsoleLogger |
Enumerations | |
enum | LogLevel { normal, warning, error } |
Priority levels for logging entries. More... | |
Functions | |
void | dumpConsoleClasses (bool dumpScript=true, bool dumpEngine=true) |
Dumps all declared console classes to the console. | |
void | dumpConsoleFunctions (bool dumpScript=true, bool dumpEngine=true) |
Dumps all declared console functions to the console. | |
void | echo (string message...) |
Logs a message to the console. | |
void | error (string message...) |
Logs an error message to the console. | |
void | log (string message) |
Logs a message to the console. | |
void | logError (string message) |
Logs an error message to the console. | |
void | logWarning (string message) |
Logs a warning message to the console. | |
void | setLogMode (int mode) |
Determines how log files are written. | |
void | warn (string message...) |
Logs a warning message to the console. |
Functions for logging messages, warnings, and errors to the console.
enum LogLevel |
void dumpConsoleClasses | ( | bool | dumpScript = true , |
|
bool | dumpEngine = true | |||
) |
Dumps all declared console classes to the console.
dumpScript | Optional parameter specifying whether or not classes defined in script should be dumped. | |
dumpEngine | Optional parameter specifying whether or not classes defined in the engine should be dumped. |
void dumpConsoleFunctions | ( | bool | dumpScript = true , |
|
bool | dumpEngine = true | |||
) |
Dumps all declared console functions to the console.
dumpScript | Optional parameter specifying whether or not functions defined in script should be dumped. | |
dumpEngine | Optional parameter specitying whether or not functions defined in the engine should be dumped. |
void echo | ( | string | message... | ) |
Logs a message to the console.
Concatenates all given arguments to a single string and prints the string to the console. A newline is added automatically after the text.
message | Any number of string arguments. |
void error | ( | string | message... | ) |
Logs an error message to the console.
Concatenates all given arguments to a single string and prints the string to the console as an error message (in the in-game console, these will show up using a red font by default). A newline is added automatically after the text.
message | Any number of string arguments. |
void log | ( | string | message | ) |
Logs a message to the console.
message | The message text. |
void logError | ( | string | message | ) |
Logs an error message to the console.
message | The message text. |
void logWarning | ( | string | message | ) |
Logs a warning message to the console.
message | The message text. |
void setLogMode | ( | int | mode | ) |
Determines how log files are written.
Sets the operational mode of the console logging system.
mode | Parameter specifying the logging mode. This can be:
|
Additionally, when changing the log mode and thus opening a new log file, either of the two mode values may be combined by binary OR with 0x4 to cause the logging system to flush all console log messages that had already been issued to the console system into the newly created log file.
void warn | ( | string | message... | ) |
Logs a warning message to the console.
Concatenates all given arguments to a single string and prints the string to the console as a warning message (in the in-game console, these will show up using a turquoise font by default). A newline is added automatically after the text.
message | Any number of string arguments. |