
Security News
Deno 2.4 Brings Back deno bundle, Improves Dependency Management and Observability
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
log4js-sentry
Advanced tools
Sends logging events to Sentry. This appender uses @sentry/node. Consult the docs for sentry/node, or sentry configuration itself, if you want more information on the configuration options below.
npm install log4js-sentry
or
yarn add log4js-sentry
(This is a plug-in appender for log4js, so you'll need that as well)
type
- log4js-sentry
dsn
- string
- where to send the events (docs)This appender will scan the msg from the logging event, and pull out any argument of the
shape { tags: [] }
so that it's possible to add additional tags in a normal logging call. See the example below.
log4js.configure({
appenders: {
sentry: {
type: 'log4js-sentry',
dsn: 'https://{KEY}@{HOST}/{PROJECT_ID}',
tags: ['tag1'],
},
},
categories: {
default: { appenders: ['sentry'], level: 'info' },
},
});
const logger = log4js.getLogger();
logger.info({ tags: ['my-tag-1', 'my-tag-2'] }, 'Some message');
This will result in a log message being sent to Sentry with the tags tag1
, my-tag-1
, my-tag-2
.
FAQs
Sentry Appender for log4js-node
The npm package log4js-sentry receives a total of 0 weekly downloads. As such, log4js-sentry popularity was classified as not popular.
We found that log4js-sentry 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.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.