method ProcessReport.writeReport
Usage
import { type ProcessReport } from "node:process";
Writes a diagnostic report to a file. If filename is not provided, the default filename includes the date, time, PID, and a sequence number. The report's JavaScript stack trace is taken from err, if present.