kaldr
Simple logger for client-side errors
Last updated 7 years ago by n4kz .
LGPL-3.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install kaldr -g
SYNC missed versions from official npm registry.

Kaldr

Simple logger for client-side errors

Server

kaldr --port 3000 > client.log &

Client

Load kaldr

<iframe id="#logger" src="http://localhost:3000/kaldr.frame#" style="display:none"></iframe>

Send message to kaldr

var logger = document.getElementById('logger'),
	src = logger.getAttribute('src').split('#')[0];

window.onerror = function (mesage, file, line) {
	logger.setAttribute('src', src + '#' + message + ' in ' + file + ' at line ' + line);
};

Current Tags

  • 0.1.0                                ...           latest (7 years ago)

5 Versions

  • 0.1.0                                ...           7 years ago
  • 0.0.5                                ...           8 years ago
  • 0.0.4                                ...           8 years ago
  • 0.0.3                                ...           8 years ago
  • 0.0.2                                ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (2)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |