Browser-like object for printing to stdout and stderr.
Prints to stdout with newline. This function can take multiple arguments in a
printf()
-like way. Example:
console.log('count: %d', count);
If formating elements are not found in the first string then util.inspect
is used on each argument.
Same as console.log
.
Same as console.log
but prints to stderr.
Uses util.inspect
on obj
and prints resulting string to stderr.
Mark a time.
Finish timer, record output. Example
console.time('100-elements');
while (var i = 0; i < 100; i++) {
;
}
console.timeEnd('100-elements');
Print a stack trace to stderr of the current position.
Same as assert.ok()
.