util.log(string)
稳定性: 0 - 弃用: 改用第三方的模块。
string
<string>
util.log()
方法使用包含的时间戳打印给定的 string
到 stdout
。
const util = require('node:util');
util.log('Timestamped message.');
Stability: 0 - Deprecated: Use a third party module instead.
string
<string>
The util.log()
method prints the given string
to stdout
with an included
timestamp.
const util = require('node:util');
util.log('Timestamped message.');