1.0.5 • Published 5 years ago

sails-hook-morgan v1.0.5

Weekly downloads
129
License
ISC
Repository
github
Last release
5 years ago

sails-hook-morgan

Sails.js hook for using morgan.

NPM version Build Status Coverage Status

Installation

$ npm install sails-hook-morgan --save

Configuration

config/morgan.js

module.exports.morgan = {
  "format": "common"
};

Consult morgan documentation for more format you can set, the default format is "dev".

Disable in Production Environment

config/env/production.js

module.exports = {
  hooks: {
    morgan: false
  }
};
1.0.5

5 years ago

1.0.3

5 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago