Skip to main content
function log
log(string: string): void
Deprecated

The util.log() method prints the given string to stdout with an included timestamp.

import util from 'node:util';

util.log('Timestamped message.');

Parameters

string: string

Return Type

void
Back to top