0.4.1 • Published 3 years ago

egg-web v0.4.1

Weekly downloads
4
License
MIT
Repository
github
Last release
3 years ago

egg-web

Install

$ npm i egg-web --save
$ docker pull hbrls/builder:egg-web-0-3

Usage

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

Logentries

// app.js
const LogentriesTransport = require('egg-web/transports/logentries.js');

module.exports = app => {
  app.getLogger('logger').set('logentries', new LogentriesTransport({ level: 'INFO', app }));
  app.getLogger('errorLogger').set('logentries', new LogentriesTransport({ level: 'ERROR', app }));
};

Build-In

  1. HttpIn logging

Forward

详见 router.js

router.all('/free-api/:service/:wildcard+', forward({ service }) => service, ({ wildcard }) => `/api/${wildcard}`));

CHANGELOG

0.4.0 (2021-02-08)

  1. 开始向 midway 转型,基本框架没有变动,但暂时不保证完全兼容

MIT License

0.4.1

3 years ago

0.4.0

4 years ago

0.3.4

5 years ago

0.3.3

5 years ago

0.3.2

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.8

5 years ago

0.2.7

5 years ago

0.2.6

5 years ago

0.2.5

5 years ago

0.2.4

5 years ago

0.2.3

5 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.10

6 years ago

0.1.9

6 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago