Coder Social home page Coder Social logo

meteor-raven's Introduction

Raven

Raven/Sentry integration for Meteor. Includes Raven.js for frontend logging and raven-node for backend logging.

Provides consolidated error logging to Sentry via Raven from both the client and the server.

This package is MIT Licensed. Do whatever you like with it but any responsibility for doing so is your own. All rights to raven are with the original authors.

Usage

Configure your client and server DSN keys and log an error message. For the client entry, don't include your private key. For the server entry, include your private key.

RavenLogger.initialize({
  client: 'https://[email protected]/app_id',            // Do not include your private key here
  server: 'https://public_key:[email protected]/app_id' // *DO* include your private key here
});
RavenLogger.log('Testing error message');

Optionally you can pass a tag:

RavenLogger.log('Testing error message', { component: 'system' });

If you are using the Meteor Accounts package, you can enable user tracking on errors:

RavenLogger.initialize({
  client: 'your client DSN here',
  server: 'your server DSN here'
}, {
  trackUser: true
});

To catch uncaught exceptions on the server, set patchGlobal to true or a function:

RavenLogger.initialize({
  client: 'your client DSN here',
  server: 'your server DSN here'
}, {
  patchGlobal: function() {
    console.log('Bye, bye, world');
    process.exit(1);
  }
});

Raven also works very well with saving full error and exception stack traces. Simply pass an Error or a Meteor.Error object to the log method to keep the stack trace.

RavenLogger.log(new Meteor.Error(422, 'Failed to save object to database'));

meteor-raven's People

Contributors

bradwalton avatar dandv avatar deepwell avatar rgould avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.