0.0.5 • Published 10 years ago

bunyan-raygun v0.0.5

Weekly downloads
11
License
-
Repository
github
Last release
10 years ago

bunyan-raygun NPM version Downloads Support us Build Status Coveralls Status

Information

Usage

var BunyanRaygun = require('bunyan-raygun');

var transport = new BunyanRaygun({
  apiKey: 'your api key',
  user: function(req) {
    // this is optional
    // see https://github.com/MindscapeHQ/raygun4node#unique-user-tracking
  }
});

var logger = bunyan.createLogger({
  name: 'test',
  serializers: bunyan.stdSerializers,
  streams: [{
    type: 'raw',
    level: 'warn',
    stream: transport
  }]
});

This will only send if the log includes an error. Optionally include a request in the log to send that information along.

Like what we do?

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago