util.log(string)


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

util.log() 方法将给定的 string 打印到 stdout,并附带时间戳。

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

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

util.log('Timestamped message.');