gkoniaris
4/20/2020 - 8:21 AM

Logging tutorial snippet 11

// On top of logger file
const Sentry = require('winston-sentry-log');
....
....
// Inside the transports array
new Sentry({
    config: {
        dsn: process.env.SENTRY_DSN
    },
    level: "warn"
})