1.0.1 • Published 6 years ago
log4js-airbrake-appender v1.0.1
Log4JS Airbrake
this module sends Log4js (3.x) logs to AirBrake (1.4.x)
Installing
Install with npm using the following command
npm install log4js-airbrake-appender
Example
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:)');