Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jslog

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jslog

Cloud logger for Phonegap/Cordova hybrid applications and web applications

  • 1.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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.

Using with NodeJS

Install jslog package

npm install jslog --save

Sample file for NodeJS:

var JsLog = require('jslog'),
    jslog = new JsLog({ key: "<API-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.

Using with browser

For web-sites and single-page applications

Include this script in your web page, preferably before any other script:

<script type="text/javascript" src="//jslog.me/js/jslog.js"></script>
<script type="text/javascript">jslog = new JsLog({ key: "<API-KEY>" });</script>

Using with Cordova

Download client library and bundle it with your hybrid application. Include this script in your web page, preferably before any other script:

<script type="text/javascript" src="/path-to-js/jslog.js"></script>
<script type="text/javascript">jslog = new JsLog({ key: "<API-KEY>" });</script>

Keywords

FAQs

Package last updated on 28 Feb 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc