lns

log4js-node-sentry

A Sentry appender for log4js-node.

Showing:

Popularity

Downloads/wk

417

GitHub Stars

0

Maintenance

Last Commit

6yrs ago

Contributors

0

Package

Dependencies

2

Size (min+gzip)

24.5KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

Sentry Appender for log4js

This is a simple appender for log4js to send log messages to Sentry.

Installation

$ npm install log4js-node-sentry

Basic Usage

var log4js = require('log4js');

// Configure log4js
log4js.configure({
    appenders: [
        {
            type:       'log4js-node-sentry',
            dsn:        '{{ YOUR SENTRY DSN }}',
            category:   'sentry'
        }
    ],
    levels: {
        sentry: 'ERROR'
    }
});

// Get the logger
var logger = log4js.getLogger('sentry');

// Send an error to Sentry
logger.error('This is a test.');

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100