🚀 Socket Launch Week 🚀 Day 5: Introducing Socket Fix.Learn More
Socket
Sign inDemoInstall
Socket

loggrr

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

loggrr

Provides logging goodness

0.0.2
latest
Source
npm
Version published
Weekly downloads
3
-40%
Maintainers
1
Weekly downloads
 
Created
Source

loggrr

NPM

Travis build status Dependency Status devDependency Status npm version

Loggr provides logging goodness by presenting error details in a readable format.

Installation

Using cdn:

<script src="https://cdn.rawgit.com/tidupls/loggrr/master/dist/loggrr.min.js"></script>

Using npm:

$ npm install loggrr

Using bower:

$ bower install loggrr

Example

Usually this code snippet wil raise an exception that isn't very helpful.

foo(); // Uncaught ReferenceError: foo is not defined

But with loggrr:

Loggrr.init();

foo();
/*
Type: error
Error: Uncaught ReferenceError: foo is not defined
Stack Trace: ReferenceError: foo is not defined at demo/index.html:32:9
File Name: index.html
Path: demo/index.html
Line Number: 32	Column: 9
Date: Sun Jul 17 2016 14:42:52 GMT+0200 (SAST)
Debug: demo/index.html:32
Help: https://stackoverflow.com/search?q=Uncaught+ReferenceError:+foo+is+not+defined
*/

Usage

loggrr.init() // Initializes loggrr, more options to come

Demo

See the demo folder.

Still to do

  • Enable remote logging of error information.
  • Customization of error messages.

Keywords

logging

FAQs

Package last updated on 17 Jul 2016

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