
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@synapsestudios/winston-sentry
Advanced tools
A simple winston transport that logs your errors to sentry.
This transport is for winston 3.x and uses the new @sentry/node
SDK instead of Raven.
npm install --save @synapsestudios/winston-sentry
Follow the steps in sentry's docs to set up your node sdk. The transport doesn't set up the sentry SDK for you in case you want to make any of your own sentry calls outside of the context of winston.
Initialize the transport and tell winston about it like this:
const winston = require('winston');
const SentryTransport = require('@synapsestudios/winston-sentry');
const Sentry = require('@sentry/node');
Sentry.init({
/* sentry init values */
});
module.exports = new winston.Logger({
transports: [
/* ... your other transports */
new SentryTransport({ Sentry }),
]
});
Whenever an error with level fatal
or error
are logged with your winston logger that error will also be logged to sentry.
[v2.1.0] - 2020-09-22
close
boolean parameter to make Sentry SDK promise to resolve all events before moving onto the nextFAQs
Winston transport for sentry
We found that @synapsestudios/winston-sentry demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 10 open source maintainers collaborating on the project.
Did you know?
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.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.