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

kaldr

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kaldr

Simple logger for client-side errors

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Kaldr

Simple and fast logger for client-side errors

Installation

# Global
npm -g install kaldr

# Local
npm install kaldr

If you have chosen local installation, check your PATH environment variable. npm creates symlinks to all binaries in ~/node_modules/.bin hidden folder. So you may want to prepend it to PATH.

Server setup

# Log to console
kaldr

# Log to file
kaldr >> client.log &

# Test kaldr
curl -b 'message=Hello, World!' localhost:8080/kaldr.log

Client setup

Load kaldr

<iframe id="logger" src="http://localhost:8080/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);
};

Copyright 2013 Alexander Nazarov. All rights reserved.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

Keywords

FAQs

Package last updated on 16 Oct 2013

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