helpers/custom_console_logger.js
function (message) {
  var newMessage = "";
  if (requestNamespace) {
    if (requestNamespace.get('reqId')) {
      newMessage += "[" + requestNamespace.get('reqId') + "]";
    }
    if (requestNamespace.get('workerId')) {
      newMessage += "[Worker - " + requestNamespace.get('workerId') + "]";
    }
    const hrTime = process.hrtime();
    newMessage += "[" + timeInMilli(hrTime) + "]";
  }
  newMessage += message;
  return newMessage;
}
function (message) {
  var newMessage = "";
  if (requestNamespace) {
    if (requestNamespace.get('reqId')) {
      newMessage += "[" + requestNamespace.get('reqId') + "]";
    }
    if (requestNamespace.get('workerId')) {
      newMessage += "[Worker - " + requestNamespace.get('workerId') + "]";
    }
    const hrTime = process.hrtime();
    newMessage += "[" + timeInMilli(hrTime) + "]";
  }
  newMessage += message;
  return newMessage;
}
function ( message ) { var newMessage = "" ; if ( requestNamespace ) { if ( requestNamespace . get ( 'reqId' ) ) { newMessage += "[" + requestNamespace . get ( 'reqId' ) + "]" ; } if ( requestNamespace . get ( 'workerId' ) ) { newMessage += "[Worker - " + requestNamespace . get ( 'workerId' ) + "]" ; } const hrTime = process . hrtime ( ) ; newMessage += "[" + timeInMilli ( hrTime ) + "]" ; } newMessage += message ; return newMessage ; }
Method to append Request in each log line.

@param {string} message
Method to append Request in each log line .