function log Usageimport { log } from "node:util"; DeprecatedSince v6.0.0 - Use a third party module instead. log(string: string): void The util.log() method prints the given string to stdout with an included timestamp. The util.log() method prints the given string to stdout with an included timestamp. const util = require('node:util'); util.log('Timestamped message.'); Parameters string: string Return Type void