# loggrr
[![NPM](https://nodei.co/npm/loggrr.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/loggrr/)

[![Travis build status](http://img.shields.io/travis/tidupls/loggrr.svg?style=flat)](https://travis-ci.org/tidupls/loggrr)
[![Dependency Status](https://david-dm.org/tidupls/loggrr.svg)](https://david-dm.org/tidupls/loggrr)
[![devDependency Status](https://david-dm.org/tidupls/loggrr/dev-status.svg)](https://david-dm.org/tidupls/loggrr#info=devDependencies)
[![npm version](https://badge.fury.io/js/loggrr.svg)](https://badge.fury.io/js/loggrr)

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

## Installation
Using cdn:
```html
<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.
```javascript
foo(); // Uncaught ReferenceError: foo is not defined
```
But with loggrr:
```javascript
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
```javascript
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.

