1.0.0 • Published 7 years ago

egg-morgan v1.0.0

Weekly downloads
108
License
MIT
Repository
github
Last release
7 years ago

egg-morgan

NPM version build status Test coverage David deps Known Vulnerabilities npm download

Morgan plugin for egg.js, based on koa-morgan@0.x.

Install

$ npm i egg-morgan --save

Usage

// {app_root}/config/plugin.js
exports.morgan = {
  enable: true,
  package: 'egg-morgan',
};

Configuration

Support all morgan configurations.

// {app_root}/config/config.default.js
exports.morgan = {
  format: 'combined',
  // options: {},
};

see config/config.default.js for more detail.

License

MIT