The logger class is used for logging messages in the debug.log file and in the dev console.


Print

Print

Description: Print a message or a value in the log file and the dev console.

void Print(String fMessage, bool fIsError = false)
void Print(int fValue, bool fIsError = false)
void Print(uint fValue, bool fIsError = false)
void Print(float fValue, bool fIsError = false)
void Print(bool fValue, bool fIsError = false)
void Print(Variant fValue, bool fIsError = false)

[in] fMessage: String message to log.
[in] fValue: Value to log (integer, real number, boolean…).
[in] fIsError: If true then the message will be considered as an error message.

Example:

// Print some messages
Print("normal log message");
Print("error log message", true);
 
// Print a variable value in the log/console
const int _Variable = 15;
Print(_Variable);
  • modding/scripting/api/logger.txt
  • Last modified: 14/10/2018 12:17
  • (external edit)