src/logger.js
function setHandlers(enableException, enableUnhandled) {
    if(enableException === true) {
        process.on('uncaughtException', UncaughtExceptionHandler);
    }

    if(enableUnhandled === true) {
        process.on('unhandledRejection', unhandledRejectionHandler);
    }
}
function setHandlers(enableException, enableUnhandled) {
    if(enableException === true) {
        process.on('uncaughtException', UncaughtExceptionHandler);
    }

    if(enableUnhandled === true) {
        process.on('unhandledRejection', unhandledRejectionHandler);
    }
}
function setHandlers ( enableException , enableUnhandled ) { if ( enableException === true ) { process . on ( 'uncaughtException' , UncaughtExceptionHandler ) ; } if ( enableUnhandled === true ) { process . on ( 'unhandledRejection' , unhandledRejectionHandler ) ; } }
Set handlers for the uncaughtException and unhandledRejection events in nodejs.

@param enableException boolean
@param enableUnhandled boolean
Set handlers for the uncaughtException and unhandledRejection events in nodejs .