/jslogger

Log errors and events from your Javascript app

Primary LanguageCoffeeScript

JSLogger - Log errors and events from your Javascript app

Build Status

##Why use it?

  • Keep track of your clientside errors.
  • Monitor your user's activity through events.
  • Investigate what browser platforms generate more errors.
  • Keep your logs in our cloud so your servers don't get overloaded.
  • Manage your logs from our Web interface.

##How to use it?

  • Include the script in your web page, preferably before any other script: <script type="text/javascript" src="//jslogger.com/jslogger.js"></script> <script type="text/javascript">window.jslogger = new JSLogger();</script>

  • Watch your logs on our site.

##How to track?

All Javascript errors in your site will be logged to our server by default. But you can also log and track events on your own.

###Logs

To log errors or other types of notifications use the .log(data) function

jslogger.log("I am an exception")
jslogger.log({exception: {name: "SignupFail", message: "The signup request failed."}})

###Events

To log special events use the .event(data) function

jslogger.event("The signup button was clicked.")
jslogger.event({signup: {from: "Header red button"}})

##Options

If you don't want to send logs to the server in development mode, set track option to false:

new JSLogger({track: false});

If you don't want to track the errors in your site, set logWindowErrors to false:

new JSLogger({logWindowErrors: false});

##How to apply?

Our tool is still in BETA version. You can register here: http://jslogger.com/register. For other questions please send an e-mail to support@jslogger.com. For quick questions you can always ping us on Twitter - @jslogger or tweet about how awesome JSLogger is - #jslogger. Like us on Facebook and become a part of the JSLogger community.