1 2 3 4 5 6 7 8 9 10 11 12 13 | import * as winston from 'winston'; import * as Sentry from 'winston-raven-sentry'; import {config} from './config'; export const logger = new winston.Logger({ transports: [ new Sentry({ dsn: config.sentry.dsn, level: config.sentry.logLevel, }), ], }); |