registerNewEventsLogger = function() {
  CheckEvent.on('afterInsert', function(checkEvent) {
    checkEvent.findCheck(function(err, check) {
      var messageColor;
      var message = check.name + ' ';
      switch (checkEvent.message) {
        case 'paused':
        case 'restarted':
          message += 'was ' + checkEvent.message;
          messageColor = 'blue+bold';
          break;
        case 'down':
          message += 'went down ' + checkEvent.details;
          messageColor = 'red+bold';
          break;
        case 'up':
          if (checkEvent.downtime) {
            message += 'went back up after ' +  Math.floor(checkEvent.downtime / 1000) + 's of downtime';
          } else {
            message += 'is now up';
          }
          messageColor = 'green+bold';
          break;
        default:
         message += '(unknown event)';
         messageColor = 'bold';
      }

      console.log(timestamp() + color(message, messageColor));
    });
  });
}
Console plugin

Logs all pings and events (up, down, paused, restarted) on the console

Installation
------------
This plugin is enabled by default. To disable it, remove its entry 
from the `plugins` key of the configuration:

  // in config/production.yaml
  plugins:
    # - ./plugins/console