0.5.0 • Published 5 years ago
sails-hook-winston-sentry v0.5.0
sails-hook-winston-sentry
Winston transports with Sentry for sails
Requirement
- Sails ^1.3.x basement
- Sails hook
sails-util-micro-appsinstalled(should be optional)
Installation
- Install plugin
// because your are using sails micro-app, so you have to install this first.
npm install sails-util-micro-apps sails-hook-winston-sentryConfiguration
sails-hook-winston-sentry has a simple config file that outputted for you.
so you can decided to enable this plugin or not, or change the default entry /doc to load the swagger documentation you want.
- config/log.js
module.exports.log = {
winston: {
defaultMeta: null,
},
sentry: {
dsn: null,
},
};- or use local.js
module.exports.log = {
log:{
winston: {
defaultMeta: null,
...
},
sentry: {
dsn: null,
...
},
}
};0.5.0
5 years ago