ProcessReport

@native @JSType trait ProcessReport extends StObject
trait StObject
class Object
trait Any
class Object
trait Matchable
class Any

Value members

Concrete methods

def getReport(): String

Returns a JSON-formatted diagnostic report for the running process. The report's JavaScript stack trace is taken from err, if present.

Returns a JSON-formatted diagnostic report for the running process. The report's JavaScript stack trace is taken from err, if present.

def getReport(err: Error): String
def writeReport(): 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.

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.

Value Params
error

A custom error used for reporting the JavaScript stack.

fileName

Name of the file where the report is written. This should be a relative path, that will be appended to the directory specified in process.report.directory, or the current working directory of the Node.js process, if unspecified.

Returns

Filename of the generated report.

def writeReport(error: Error): String
def writeReport(fileName: String): String
def writeReport(fileName: String, err: Error): String
def writeReport(fileName: Unit, err: Error): String

Inherited methods

def hasOwnProperty(v: String): Boolean
Inherited from
Object
def isPrototypeOf(v: Object): Boolean
Inherited from
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from
Object
def toLocaleString(): String
Inherited from
Object
def valueOf(): Any
Inherited from
Object

Concrete fields

var directory: String

Directory where the report is written. working directory of the Node.js process.

Directory where the report is written. working directory of the Node.js process.

var filename: String

Filename where the report is written. The default value is the empty string.

Filename where the report is written. The default value is the empty string.

var reportOnFatalError: Boolean

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

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

var reportOnSignal: Boolean

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

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

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

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

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

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