log4js-node-sentry-appender
v1.0.10
Published
This is simple log4js appender for integration with sentry.io
Downloads
37
Readme
Sentry log4js appender
This package requires @sentry/node
An example of the config:
const log4js = require('log4js');
log4js.configure({
appenders: {
console: { type: 'console' },
'log4js-node-sentry-appender': { type: 'log4js-node-sentry-appender', dsn: 'https://{KEYS}@{HOST}/{PROJECT_ID}', env: 'production' }
},
categories: {
default: { appenders: ['console', 'log4js-node-sentry-appender'], level: 'error' }
}
});