jslog
!
Build status
Cloud logger for Phonegap/Cordova hybrid applications and web applications
It catches all errors and log messages from your application. You can view logs lately to easily identify issues and ways to reproduce. Supports offline mode and storing large JSON objects.
How to start
Register at
JsLog.me, create a new project and
get an API key for it.
$3
Install jslog package
~~~bash
npm install jslog --save
~~~
Sample file for NodeJS:
~~~JavaScript
var JsLog = require('jslog'),
jslog = new JsLog({ key: "
" });
jslog.log('Message from JsLog');
jslog.log({aaa: 'AAA'});
console.log('Message from Console');
~~~
JsLog hooks on console.log, warn, error, info by default. You can control this behaviour by hookConsole option.
$3
For web-sites and single-page applications
Include this script in your web page, preferably before any other script:
~~~JavaScript
~~~
$3
Download client library and bundle it with your hybrid application.
Include this script in your web page, preferably before any other script:
~~~JavaScript
~~~