process.report.compact
以紧凑的单行 JSON 格式编写报告,与专为人类使用而设计的默认多行格式相比,日志处理系统更易于使用。
console.log(`Reports are compact? ${process.report.compact}`);
Write reports in a compact format, single-line JSON, more easily consumable by log processing systems than the default multi-line format designed for human consumption.
console.log(`Reports are compact? ${process.report.compact}`);