Sails.js hook for using morgan.
$ npm install sails-hook-morgan --save
config/morgan.js
module.exports.morgan = {
"format": "common"
};
Consult morgan documentation for more format
you can set, the default format
is "dev"
.
config/env/production.js
module.exports = {
hooks: {
morgan: false
}
};