Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New package "winston-raven-sentry" #49

Open
niftylettuce opened this issue Jul 23, 2017 · 1 comment
Open

New package "winston-raven-sentry" #49

niftylettuce opened this issue Jul 23, 2017 · 1 comment

Comments

@niftylettuce
Copy link
Contributor

For anyone that needs a newer maintained version: https://github.com/niftylettuce/winston-raven-sentry

@niftylettuce
Copy link
Contributor Author

The package linked above is a drop-in replacement for this package (see notes below). I completely rewrote the codebase and started it as a new project:

  • Added errorHandler option to customize (or turn off) the error logging for Raven
  • Exposed raven as this.raven (e.g. winston.transports.sentry.raven can be used now)
  • Refactored captureMessage and captureException usage
  • Added ability to specify options.silent
  • Ensure level mapping is accurate otherwise do not log at all
  • Default log level is now info
  • Added captureUnhandledRejections option and documentation
  • Documented default values from raven
  • Added default DSN value to process.env.SENTRY_DSN
  • Renamed patchGlobal to install and added backwards compatibility
  • Added backwards compatibility with deprecated options.tags, options.globalTags, and options.extras
  • Requires node >= v4.8.4
  • Requires winston >= 2.x
  • Added options.dsn and options.config for raven usage and documented default values provided by raven (e.g. process.env.SENTRY_DSN can be used)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant