console
- Description:
- The Custom Driver Console. Can be used for writing log messages during custom driver manual executions
Examples
// appends the "Hello world" string to the execution logs array at info-level
console.info("Hello world");
// appends the "Hello world 10" string to the execution logs array at info-level, having x variable equal to 10
console.info("Hello world %d", x);
Methods
(static) debug(msg, …argsopt)
- Description:
- Write the given message to the sandbox log (debug-level). Prefixed by 'D:' in the sandbox logs
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
msg |
string | The message to log | |
args |
* |
<optional> <repeatable> |
Optional values to format into the message. |
(static) error(msg, …argsopt)
- Description:
- Write the given message to the sandbox log (error-level). Prefixed by 'E:' in the sandbox logs
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
msg |
string | The message to log | |
args |
* |
<optional> <repeatable> |
Optional values to format into the message. |
(static) get() → {Array.<string>}
- Description:
- Returns the log message entries
Returns:
- An array of log messages
- Type
- Array.<string>
(static) info(msg, …argsopt)
- Description:
- Write the given message to the sandbox log (info-level). Prefixed by 'I:' in the sandbox logs
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
msg |
string | The message to log | |
args |
* |
<optional> <repeatable> |
Optional values to format into the message. |
(static) warn(msg, …argsopt)
- Description:
- Write the given message to the sandbox log (warning-level). Prefixed by 'W:' in the sandbox logs
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
msg |
string | The message to log | |
args |
* |
<optional> <repeatable> |
Optional values to format into the message. |