winston-sentry-node
A simple Sentry/Node.js transport for the winston 3.x logger.
Install
npm install --save winston-sentry-node
Usage
Sample configuration:
const winston = const SentryTransport = ; var logger = transports: level: 'verbose' sentry: dsn: "{{ YOUR SENTRY DSN }}" ;
You can also add the DSN to the SENTRY_DSN
environment variable.
Sentry.init({dsn: ...})
is called automatically when you create the transport.