2.3.3 • Published 6 months ago
egg-logger-sentry v2.3.3
egg-logger-sentry
Sentry SDK for Egg
Install
$ npm i egg-logger-sentry --save
Configuration
Change ${app_root}/config/plugin.js
to enable egg-logger-sentry
plugin:
exports.loggerSentry = {
enable: true,
package: 'egg-logger-sentry',
};
Configure information in ${app_root}/config/config.default.js
:
exports.loggerSentry = {
dsn: 'https://<hash>@sentry.example.com/<id>'
};
see config/config.default.js for more detail.
Usage
ctx.logger.debug('debug info');
ctx.logger.info('some request data: %j', ctx.request.body);
ctx.logger.warn('WARNNING!!!!');
Questions & Suggestions
Please open an issue here.
License
2.3.2
6 months ago
2.3.3
6 months ago
2.3.0
12 months ago
2.3.1
12 months ago
2.2.1
3 years ago
2.2.0
3 years ago
2.1.0
3 years ago
2.0.0
3 years ago
1.0.0-beta.2
4 years ago
1.0.0-beta.1
4 years ago