util.log(string)


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

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

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

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

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

util.log('Timestamped message.');