util.log(string)


稳定性: 0 - 弃用: 改用第三方的模块。

util.log() 方法使用包含的时间戳打印给定的 stringstdout

const util = require('node:util');

util.log('Timestamped message.');

Stability: 0 - Deprecated: Use a third party module instead.

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

const util = require('node:util');

util.log('Timestamped message.');