Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Raygun transport for Bunyan
JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
test
.editorconfig
.gitignore
.jshintrc
.npmignore
.travis.yml
LICENSE
README.md
index.js
package.json

README.md

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

Information

Packagebunyan-raygun
Description Raygun transport for Bunyan
Node Version >= 0.10

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?

Something went wrong with that request. Please try again.