GithubHelp home page GithubHelp logo

errwischt.js's Introduction

Errwischt.js - ErrorTracking Client for Errwischt Error Tracker

Installation (Three flavours)

This error client is bundled with a fork of TraceKit. This is, because we will also provide stack traces of errors that were not caught by a try..catch block.

You can choose between three ways, how to load the errwischt.js file. In each case, we recommend to put the snippet into the head, to catch as much errors as possible.

Bundled min file

The first one is a complete bundle. For this, you will simply load the errwischt.min.js file. And setup Errwischt according your API key. It might look like this:

  <script src="errwischt.js"></script>
  <script>
  (function() {
    Errwischt.setup('your api key goes here');
  }());
  </script>

Now, when ever an error occures, it will be send right away to the errwischt error server. But the user have to load the full package up front, although he might not encouter any error.

Errwischt.js + Dependencies

To reduce the filesize (and with this the performance of your loading page) we suggest loading the errwischt.pure.min.js and configure the url for the errwischt.deps.min.js file. This might look like this:

  <script src="errwischt.pure.min.js"></script>
  <script>
  (function() {
    Errwischt.setup('your api key goes here');
    Errwischt.depsSrc = 'errwischt.deps.min.js';
  }());
  </script>

Now the user has to load much less code. If an error occures, errwischt.js will then load the needed dependencies by itself, and will still provide useful stack traces.

Pure Errwischt.js

You can minimize the amount of code the user has to load when you only load the errwischt.pure.min.js file and don't define a depsSrc property.

  <script src="errwischt.pure.min.js"></script>
  <script>
  (function() {
    Errwischt.setup('your api key goes here');
  }());
  </script>

But you won't neccessarily get stack traces on errors you do not catch by yourself.

errwischt.js's People

Contributors

calamari avatar

Stargazers

Carl Smith avatar

Watchers

 avatar James Cloos 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.