Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eggjs/egg-logview
Provide a log files viewer for development purpose.
https://github.com/eggjs/egg-logview
egg-development egg-plugin
Last synced: 9 days ago
JSON representation
Provide a log files viewer for development purpose.
- Host: GitHub
- URL: https://github.com/eggjs/egg-logview
- Owner: eggjs
- License: mit
- Created: 2016-11-17T08:20:28.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-04-23T07:48:20.000Z (over 4 years ago)
- Last Synced: 2024-04-14T02:21:00.535Z (7 months ago)
- Topics: egg-development, egg-plugin
- Language: JavaScript
- Size: 230 KB
- Stars: 16
- Watchers: 10
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: History.md
- License: LICENSE
Awesome Lists containing this project
- awesome-egg - egg-logview - 为开发环境提供一个日志查看器。 ![](https://img.shields.io/github/stars/eggjs/egg-logview.svg?style=social&label=Star) ![](https://img.shields.io/npm/dm/egg-logview.svg?style=flat-square) (仓库 / 插件)
README
# egg-logview
[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![Test coverage][codecov-image]][codecov-url]
[![David deps][david-image]][david-url]
[![Known Vulnerabilities][snyk-image]][snyk-url]
[![npm download][download-image]][download-url][npm-image]: https://img.shields.io/npm/v/egg-logview.svg?style=flat-square
[npm-url]: https://npmjs.org/package/egg-logview
[travis-image]: https://img.shields.io/travis/eggjs/egg-logview.svg?style=flat-square
[travis-url]: https://travis-ci.org/eggjs/egg-logview
[codecov-image]: https://img.shields.io/codecov/c/github/eggjs/egg-logview.svg?style=flat-square
[codecov-url]: https://codecov.io/github/eggjs/egg-logview?branch=master
[david-image]: https://img.shields.io/david/eggjs/egg-logview.svg?style=flat-square
[david-url]: https://david-dm.org/eggjs/egg-logview
[snyk-image]: https://snyk.io/test/npm/egg-logview/badge.svg?style=flat-square
[snyk-url]: https://snyk.io/test/npm/egg-logview
[download-image]: https://img.shields.io/npm/dm/egg-logview.svg?style=flat-square
[download-url]: https://npmjs.org/package/egg-logviewProvide a log files viewer for development purpose.
![](snapshot.png)
## Install
```bash
$ npm i egg-logview --save
```## Usage
```js
// {app_root}/config/plugin.js
exports.logview = {
package: 'egg-logview',
// env: ['local', 'default', 'test', 'unittest']
};
```## Configuration
```js
// {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](https://github.com/eggjs/egg/issues).
## License
[MIT](LICENSE)