ProcessReport

sealed external interface ProcessReport(source)

Properties

Link copied to clipboard
abstract var compact: Boolean

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.

Link copied to clipboard
abstract var directory: String

Directory where the report is written. The default value is the empty string, indicating that reports are written to the current working directory of the Node.js process.

Link copied to clipboard
abstract var filename: String

Filename where the report is written. If set to the empty string, the output filename will be comprised of a timestamp, PID, and sequence number. The default value is the empty string.

Link copied to clipboard

If true, a diagnostic report is generated on fatal errors, such as out of memory errors or failed C++ assertions.

Link copied to clipboard
abstract var reportOnSignal: Boolean

If true, a diagnostic report is generated when the process receives the signal specified by process.report.signal.

Link copied to clipboard

If true, a diagnostic report is generated on uncaught exception.

Link copied to clipboard
abstract var signal: Signals

The signal used to trigger the creation of a diagnostic report.

Functions

Link copied to clipboard
abstract fun getReport(err: JsError = definedExternally): Any

Returns a JavaScript Object representation of a diagnostic report for the running process. The report's JavaScript stack trace is taken from err, if present.

Link copied to clipboard
abstract fun writeReport(err: JsError = definedExternally): String

abstract fun writeReport(fileName: String = definedExternally, err: JsError = definedExternally): 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.