method ProcessReport.writeReport
Usage in Deno
import { type ProcessReport } from "node:process";
ProcessReport.writeReport(fileName?: string): string
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.
string
Filename of the generated report.