winston-airbrake
An airbrake transport for winston. Inspired by winston-graylog2 transport and powered by node-airbrake.
Installation
Tested on node-0.8.x, requires npm.
$ npm install winston$ npm install winston-airbrake
Usage
var winston = ;winston;
Options:
-
level: Level of messages this transport should log. (default: info)
-
silent: Boolean flag indicating whether to suppress output. (default: false)
-
apiKey: Valid Airbrake API Key (required)
-
projectId: Valid Airbrake Project ID (required)
-
env: Environment, to be displayed in Airbrake. (default: production)
Extended example of usage
var winston = ;var Airbrake = Airbrake;var http = ;var options ="apiKey":"YOUR_API_KEY""projectId":"YOUR_AIRBRAKE_PROJECT_ID";winston;http;