lib/monitor.js
function (name) {
        return function (state) {
          // Write to output stream
          var time = new Date();
          self.write(messages[name][state].replace('{pid}', self.pid[name]));
          self.write('=== Time: ' + time.toString());
        };
      }
function (name) {
        return function (state) {
          // Write to output stream
          var time = new Date();
          self.write(messages[name][state].replace('{pid}', self.pid[name]));
          self.write('=== Time: ' + time.toString());
        };
      }
function ( name ) { return function ( state ) { // Write to output stream var time = new Date ( ) ; self . write ( messages [ name ] [ state ] . replace ( '{pid}' , self . pid [ name ] ) ) ; self . write ( '=== Time: ' + time . toString ( ) ) ; } ; }
will write the message given in the message object and write the current time and date.
will write the message given in the message object and write the current time and date .