Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 1.2 KB

README.md

File metadata and controls

44 lines (30 loc) · 1.2 KB

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
  }
};