Neovictorian Paisley Menswear
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    bunyan-raygunpublic

    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?

    Keywords

    none

    install

    npm i bunyan-raygun

    Downloadsweekly downloads

    7

    version

    0.0.5

    license

    none

    repository

    githubgithub

    last publish

    collaborators

    • avatar
    • avatar