Added sentry.io logger option

This commit is contained in:
NGPixel
2017-03-29 21:49:30 -04:00
parent 4dd79170c5
commit d13085ac1b
5 changed files with 31 additions and 3 deletions

View File

@@ -60,5 +60,13 @@ module.exports = (isDebug) => {
})
}
if (appconfig.externalLogging.sentry) {
const sentryTransport = require('./winston-transports/sentry')
winston.add(sentryTransport, {
level: 'warn',
key: appconfig.externalLogging.sentry
})
}
return winston
}