
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
bunyan-raven
Advanced tools
A bunyan-compatible stream interface that sends error logs to raven-node.
BUNYAN-RAVEN is an objectMode
stream.Writable
implementation that expects
node-bunyan log records and sends them to an instance of raven-node.
Basically, this module lets you integrate your existing node-bunyan logs with getsentry.com nice and easy without having to rewrite any code except for where you initialize your node-bunyan logger.
First, create your raven-node client as usual:
var raven = require('raven')
, client = new raven.Client("___YOUR_SENTRY_DSN__OR_DEFER_TO_env.SENTRY_DSN___");
client.patchGlobal(); // optional
Then when you create your node-bunyan logger, include an instance of the
RavenStream
as well and configure it to match your desired logging level:
var bunyan = require('bunyan')
, RavenStream = require('bunyan-raven');
var logger = bunyan.createLogger(
{ name: 'test logger'
// IMPORTANT PART:
, streams:
[ { type: 'raw'
, stream: new RavenStream(client)
, level: 'error'
}
]
};
RavenStream
will automatically logs any error objects if it is passed in the err
key
of the log record or will simply creates a new Error object with the log record's message.
PRs welcome. Bug reports/assistance, just file a GitHub issue.
BSD-2-clause
FAQs
A bunyan-compatible stream interface that sends error logs to raven-node.
The npm package bunyan-raven receives a total of 2 weekly downloads. As such, bunyan-raven popularity was classified as not popular.
We found that bunyan-raven 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.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.