Methods
debug(…args)
An alias to console.log()
.
- Source:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
args |
*
|
<repeatable> |
Prints to stdout with newline. |
error(…args)
Same as console.log
but prepends the output with "WARNING".
- Source:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
args |
*
|
<repeatable> |
Prints to stdout with newline. |
info(…args)
An alias to console.log()
.
- Source:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
args |
*
|
<repeatable> |
Prints to stdout with newline. |
log(…args)
Outputs data to the stdout
stream.
- Source:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
args |
*
|
<repeatable> |
Prints to stdout with newline. |
time(labelopt)
Starts a timer you can use to track how long an operation takes.
- Source:
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
label |
String
|
<optional> |
default |
A string representing the name to give the new timer. |
timeEnd(labelopt)
Stops a timer that was previously started by calling console.time().
- Source:
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
label |
String
|
<optional> |
default |
A string representing the name of the timer to stop. |
timeLog(labelopt)
Logs the current value of a timer that was previously started by calling console.time() to the console.
- Source:
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
label |
String
|
<optional> |
default |
The name of the timer to log to the console. |
warn(…args)
Same as console.log
but prepends the output with "WARNING".
- Source:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
args |
*
|
<repeatable> |
Prints to stdout with newline. |