this module sends Log4js (3.x) logs to AirBrake (1.4.x)
Install with npm using the following command
npm install log4js-airbrake-appender
const log4js = require('log4js');
log4js.configure({
appenders: {
airbrake: {
category: 'basic',
type: 'log4js-airbrake-appender',
level: 'debug',
key: 'AIRBRAKE-PROJECT-KEY',
}
},
categories: { default: { appenders: ['airbrake'], level: 'error' } }
});
const logger = log4js.getLogger();
logger.error('Test:)');