
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
error-sentry-appender
Advanced tools
A log4js appender that sends error-level (or higher) events to Sentry
log4js.configure({
appenders: {
stdout: {
type: 'stdout',
},
sentry: {
type: 'error-sentry-appender',
sentryConfig: {
dsn: process.env.SENTRY_DSN,
environment: process.env.NODE_ENV || 'development',
// for more config options, see: https://docs.sentry.io/error-reporting/configuration/?platform=node
},
},
sentryFilter: { type: 'logLevelFilter', level: 'error', appender: 'sentry' },
},
categories: {
default: {
appenders: ['stdout', 'sentryFilter'],
level: 'debug',
},
},
});
just pass error as the first argument of log.error
or log.fatal
const log = log4js.getLogger('someJob');
...
try {
if (!job.data) throw new Error('NOT_INVALID');
log.info('job starts');
...
return Promise.resolve(result);
} catch (error) {
log.error(error);
throw error;
}
FAQs
A log4js appender that sends error-level (or higher) events to Sentry
We found that error-sentry-appender demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.