log4js-airbrake-appender

1.0.1 • Public • Published

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:)');

Readme

Keywords

none

Package Sidebar

Install

npm i log4js-airbrake-appender

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

2.83 kB

Total Files

4

Last publish

Collaborators

  • crowdarchitects