string
util.log() 方法将给定的 string 打印到 stdout,并附带时间戳。
util.log()
stdout
【The util.log() method prints the given string to stdout with an included timestamp.】
const util = require('node:util'); util.log('Timestamped message.'); 拷贝
const util = require('node:util'); util.log('Timestamped message.');