Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 383 Bytes

README.md

File metadata and controls

13 lines (9 loc) · 383 Bytes

SentryHandler for Logging

A Handler that sends log messages to Sentry, and will try to collect other interesting information to include.

const SentryHandler = require('@todaysmeet/logging-sentry-handler');
const logging = require('@todaysmeet/logging');

let sentry = new SentryHandler(logging.WARNING, process.env.SENTRY_DSN);
logging.getLogger().addHandler(sentry);