1.0.6 • Published 7 years ago

errorlog-browser v1.0.6

Weekly downloads
47
License
ISC
Repository
github
Last release
7 years ago

errorlog

. A simple console.error override written in pure javascript.

How to use ?

Make sure you include errorLog.js in your page. Recommended as first file that loads. Set up the snippet to transport data back to you server.

Installation

bower install errorlog

npm install errorlog-browser

API

onError(error, log)

Callback that enables you to decorade the error object that is beeing collected. By default this object will look like this : var errorObj = { title: errTitle, lineColumn: errLineColumn0, windowHeight: windowHeight, windowWidth: windowWidth, os: os, browser: browser, url: url, payload: errPayload };

Example

Send

You have to implement this method yourself. This snippet is completely agnostic to any transport. You have access to the collected errors in the errorLogger.logger.log array.

Example

1.0.6

7 years ago

1.0.5

7 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.0.3

8 years ago