Open In App
Related Articles

Node.js process.report.reportOnSignal Property

Improve
Improve
Improve
Like Article
Like
Save Article
Save
Report issue
Report

The process.report is an object whose methods are used to generate diagnostic reports for the current process. If process.report.reportOnSignal is true, a diagnostic report is generated when the process receives the signal specified by process.report.signal.

Syntax:

process.report.compact

Return Value: This property returns a boolean value.

Below examples illustrate the use of the process.report.reportOnSignal property in Node.js:

Example:

index.js

// Node.js program to demonstrate the 
// process.report.reportOnSignal Property 
     
// Include process module 
import process from 'process'
    
// Printing process.report.reportOnSignal property value 
console.log(`Report on signal: ${process.report.reportOnSignal}`);

                    

Command to run:

node index.js

Output:

Note: The above program will compile and run by using the node filename.js command.

Reference:https://nodejs.org/api/process.html#process_process_report_reportonsignal

Last Updated : 08 Mar, 2021
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads