New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

driftwood-sentry-logger

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

driftwood-sentry-logger

A driftwood logger that reports to sentry.io

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

driftwood-sentry-logger

A driftwood logger that reports logs to sentry.io.

Installation

Logger

Augment your root drifwood logger with the sentry logger, giving it a DSN and some options:

const createLogger = require('driftwood')
const createSentryLogger = require('driftwood-sentry-logger')

// Create the sentry logger as an additional logger to pass to driftwood
const additionalLoggers = [createSentryLogger({
  dsn: 'https://4092230b68absereg23tggdgd:b2430c23331a4452ac0dsgsdg323@sentry.io/12356'
})]

// Create driftwood, passing in the additional loggers
module.exports = createLogger('my-app', additionalLoggers)

API

createSentryLogger({options})

Creates the logger. options should can contain the following keys:

  • dsn (required): a valid sentry DSN
  • level: warn: which log level and above should be reported to sentry
  • patchGlobal: false: whether the sentry client should patch globals
  • levelMap: {}: a mapping of driftwood log levels to sentry log levels
  • tags: {}: additional tags to pass with each log message
  • extra: {}: any data to pass to sentry's extra field

FAQs

Package last updated on 09 Nov 2017

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc