Security News
cURL Project and Go Security Teams Reject CVSS as Broken
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
logdna-bunyan
Advanced tools
[![All Contributors](https://img.shields.io/badge/all_contributors-7-orange.svg?style=flat-square)](#contributors-)
Node.js Bunyan library for logging to LogDNA
$ npm install --save logdna-bunyan
Please see @logdna/logger for instantiation options to passthrough to LogDNA's logger client.
This module provides an interface that can be hooked into Bunyan and used as a
transport to LogDNA. Since @logdna/logger
is also an EventEmitter
, please make use
of the reemitErrorEvents
provided by Bunyan so that the implementor can be aware of errors in the LogDNA client.
Not doing so will cause Bunyan to throw if @logdna/logger
emits an 'error'
.
const {createLogger} = require('bunyan')
const LogDNAStream = require('logdna-bunyan')
const logDNA = new LogDNAStream({
key: apikey
}) // See @logdna/logger for more constructor options
const logger = createLogger({
name: "My Application"
, streams: [
{
stream: process.stdout
}
, {
stream: logDNA
, type: 'raw'
, reemitErrorEvents: true // Bubble up 'error' events from @logdna/logger
}
]
})
logger.info('Starting application on port %d', app.get('port'))
NOTE: You must use the raw
stream type, and also reemitErrorEvents
must be
true
. Otherwise, errors emitted by @logdna/logger
will throw Bunyan.
Thanks goes to these wonderful people (emoji key):
Muaz Siddiqui 💻 📖 | Samir Musali 💻 📖 | Darin Spivey 💻 📖 🔧 | vilyapilya 💻 🔧 | s100 💻 | Bartek R. 💻 | Mike Del Tito 💻 🔧 |
This project follows the all-contributors specification. Contributions of any kind welcome!
Copyright © LogDNA, released under an MIT license. See the LICENSE file and https://opensource.org/licenses/MIT
Happy Logging!
2.0.3 (2021-02-22)
add @darinspivey as a contributor cd26fe2 - Mike Del Tito
add @mdeltito as a contributor 7d09953 - Mike Del Tito
add @racbart as a contributor 4bb9da0 - Mike Del Tito
add @respectus as a contributor 578e116 - Mike Del Tito
add @s100 as a contributor 4cddc7f - Mike Del Tito
add @smusali as a contributor a9a65a3 - Mike Del Tito
add @vilyapilya as a contributor 8cf3761 - Mike Del Tito
[0853e40e44] - deps: @logdna/logger@2.0.0 (Darin Spivey)
FAQs
LogDNA's Node.js logging module with support for Bunyan
The npm package logdna-bunyan receives a total of 1,163 weekly downloads. As such, logdna-bunyan popularity was classified as popular.
We found that logdna-bunyan demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.