Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sentry-winston-logger

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sentry-winston-logger

Winston based sentry logger

  • 0.1.5
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

sentry-winston-logger

Logger with sentry support

Dependencies

  • "raven": "^2.6.3"
  • "winston": "2.3.1"

Usage

import  Logger  from  "winston-raven-logger";
...
const  options  =  {
	NODE_ENV
	VERBOSE,
	SENTRY_ENVIRONMENT,
	SENTRY_API_KEY,
	SENTRY_URL,
	SENTRY_ID
};

const logger = new Logger(options);
logger.error(new Error('Test'));

If no options are provide, by default NODE_ENV is set to 'dev' , VERBOSE to 'debug and sentry raven is not set. In this case only console logs are showed.

Install

npm install winston-raven-logger --save

Testing

npm run test

Next steps

  • Update to Winston 3 and create raven transport

FAQs

Package last updated on 19 Feb 2019

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