Skip to content

Latest commit

 

History

History
50 lines (37 loc) · 865 Bytes

README.md

File metadata and controls

50 lines (37 loc) · 865 Bytes

pino-raven

Load pino logs into Sentry.

Install

npm install pino-raven -g

Usage

$ node ./server.js | pino-raven --dsn=https://abc:[email protected]/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:[email protected]/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