egg-logview

2.0.1 • Public • Published

egg-logview

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

Provide a log files viewer for development purpose.

Install

$ npm i egg-logview --save

Usage

// {app_root}/config/plugin.js
exports.logview = {
  package: 'egg-logview',
  // env: ['local', 'default', 'test', 'unittest']
};

Configuration

// {app_root}/config/config.default.js
/**
 * logview default config
 * @member Config#logview
 * @property {String} prefix - logview route prefix, default to `__logs`
 * @property {String} dir - logview dir, default to `app.config.logger.dir`
 */
exports.logview = {
};

Example

Visit http://127.0.0.1:7001/__logs

Questions & Suggestions

Please open an issue here.

License

MIT

Package Sidebar

Install

npm i egg-logview

Weekly Downloads

72

Version

2.0.1

License

MIT

Unpacked Size

11.1 kB

Total Files

9

Last publish

Collaborators

  • atian25