Socket
Book a DemoInstallSign in
Socket

winston-raven-logger

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

winston-raven-logger

Winston based sentry logger

latest
npmnpm
Version
0.1.2
Version published
Maintainers
1
Created
Source

winston-raven-logger

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 22 Aug 2018

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.