Sails hook for using morgan
npm install sails-hook-morganSails.js hook for using morgan.
[![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coverage Status][coveralls-image]][coveralls-url]
``sh`
$ npm install sails-hook-morgan --save
config/morgan.js
`javasctipt`
module.exports.morgan = {
"format": "common"
};
Consult morgan documentation for more format you can set, the default format is "dev".
config/env/production.js
`javascript``
module.exports = {
hooks: {
morgan: false
}
};
[npm-url]: https://www.npmjs.com/package/sails-hook-morgan
[npm-image]: https://img.shields.io/npm/v/sails-hook-morgan.svg
[travis-url]: https://travis-ci.org/upyun-dev/sails-hook-morgan
[travis-image]: https://img.shields.io/travis/upyun-dev/sails-hook-morgan/master.svg
[coveralls-url]: https://coveralls.io/github/upyun-dev/sails-hook-morgan?branch=master
[coveralls-image]: https://img.shields.io/coveralls/upyun-dev/sails-hook-morgan/master.svg