Socket
Socket
Sign inDemoInstall

winston-common-sentry

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

winston-common-sentry

Sentry transport for winston


Version published
Weekly downloads
3
increased by50%
Maintainers
1
Weekly downloads
 
Created
Source

winston-common-sentry

Sentry transport for winston, fork of winston-sentry

Usage

var winston = require('winston');
var Sentry = require('winston-common-sentry');

var logger = new winston.Logger({
    transports: [
        new Sentry({
                level: 'warn',
                dsn: '{{ YOUR SENTRY DSN }}'
        })
    ],
});

logger.warn('This is warning message');
try {
    throw new Error('some error');
} catch(err) {
    logger.error('This is error message', {error: err});
}

Note

Winston logging levels are mapped to the default sentry levels like this:

silly: 'debug',
verbose: 'debug',
info: 'info',
debug: 'debug',
warn: 'warning',
error: 'error',

Keywords

FAQs

Package last updated on 22 May 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc