新增于: v0.3.0弃用于: v6.0.0
稳定性: 0 - 已弃用:请改用第三方模块。
¥Stability: 0 - Deprecated: Use a third party module instead.
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.');