index.js
function () {
      var config = sails.config[this.configKey];

      // the ship drawing looks pretty silly in JSON
      sails.config.log.noShip = true;

      // as do color codes
      sails.config.log.colors = false;

      // setup some defaults
      config.logger.name = config.logger.name || 'sails';
      config.logger.serializers =
        config.logger.serializers || bunyan.stdSerializers;

      this.reqSerializer = config.logger.serializers.req ||
        function (x) { return x; };

      this.logger = bunyan.createLogger(config.logger);
    }
function () {
      var config = sails.config[this.configKey];

      // the ship drawing looks pretty silly in JSON
      sails.config.log.noShip = true;

      // as do color codes
      sails.config.log.colors = false;

      // setup some defaults
      config.logger.name = config.logger.name || 'sails';
      config.logger.serializers =
        config.logger.serializers || bunyan.stdSerializers;

      this.reqSerializer = config.logger.serializers.req ||
        function (x) { return x; };

      this.logger = bunyan.createLogger(config.logger);
    }
function ( ) { var config = sails . config [ this . configKey ] ; // the ship drawing looks pretty silly in JSON sails . config . log . noShip = true ; // as do color codes sails . config . log . colors = false ; // setup some defaults config . logger . name = config . logger . name || 'sails' ; config . logger . serializers = config . logger . serializers || bunyan . stdSerializers ; this . reqSerializer = config . logger . serializers . req || function ( x ) { return x ; } ; this . logger = bunyan . createLogger ( config . logger ) ; }
Hook configuration function.
Hook configuration function .