Skip to content

A transport for pino that formats and sends messages to Sentry

License

Notifications You must be signed in to change notification settings

jeromemacias/pino-raven

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pino-raven

Load pino logs into Sentry.

Install

npm install pino-raven -g

Usage

$ node ./server.js | pino-raven --dsn=https://abc:def@sentry.io/1234

Or, by using configuration json file:

$ node ./server.js | pino-raven --config raven.json

Options

  • --config (-c): read config from a JSON file (switches take precedence)
  • --dsn: Sentry DSN

Config JSON file

A full settings file is:

{
  "dsn": "https://abc:def@sentry.io/1234",
  "logger": "node", // default
  "name": "MyApp",
  "release": "1.3.0",
  "environment": "development", // default
  "tags": {},
  "extra": {
    "hello": "world"
  },
  "sampleRate": 1.0, // default
  "sendTimeout": 1, // default
  "includeModules": true // default
}

License

MIT License

About

A transport for pino that formats and sends messages to Sentry

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published