Adds Proxino api and utility functions to meteor project. Monitor your client-side JavaScript. Detect exceptions and log messages.
Requires Meteorite : https://github.com/oortcloud/meteorite
Proxino Official Documentation : https://www.proxino.com/documentation
Installing Proxino using Meteorite
$ cd app/directory $ mrt add proxino
Configuration
-
Register for Proxino : https://www.proxino.com/
-
Acquire API key
-
Set API key in App
Proxino.key = "xxxxxxxxx-xxxx-xxxx";
Usage
- Set Proxino to begin tracking errors
Proxino.track_errors();
- Use Proxino.log for finer-grain debugging
Proxino.log("Hello World!");
- Use Proxino.sendMeteorError to format and send instances of Meteor.Error to Proxino
var error = new Meteor.Error(404,"Page not Found","Error Details"); Proxino.sendMeteorError(error);
Example
if(Meteor.isClient){ // Initialize Proxino Proxino.key = "xxxxxxxxxxxx-xxx-xxx"; Proxino.track_errors(); Template.hello.greeting = function () { return "Welcome to proxino."; }; Template.hello.events({ 'click input' : function () { if (typeof console !== 'undefined') { // send a manual proxino message Proxino.log("Proxino Click Event"); Meteor.call('proxino',function (error, result) { if(error) { // send a Meteor.Error message to proxino Proxino.sendMeteorError(error); } if (result) {} }); } } }); } if(Meteor.isServer) { Meteor.methods({ proxino: function () { throw new Meteor.Error(500, 'Proxino Click Event Server Error', 'Proxino Click Event Server Error Message'); } }); }
TODOS
- add unit tests