Skip to content

upyun-dev/sails-hook-morgan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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