Socket
Socket
Sign inDemoInstall

zloger

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zloger

A front-end log and exception statistical system


Version published
Weekly downloads
1
decreased by-87.5%
Maintainers
1
Weekly downloads
 
Created
Source

ZLoger

Latest NPM release TravisCI Build Status Test Coverage Code Climate

A front-end log and exception statistical system

REFERENCE

<head>
    <script src="zloger.js"></script>
</head>

USE

window.onerror

window.onerror = window.ZLoger.error.bind(window.ZLoger);

img.onerror / script.onerror

<img src="error.png" onerror="ZLoger.error(event)">
or
imgObj.addEventListener('error', ZLoger.error, false);
imgObj.attachEvent('onerror', ZLoger.error);

directly use send

ZLoger.send('http://aa.xx.com/pv.gif?', {
    ip: '10.1.1.1'
}, 1);
or
ZLoger.send('http://aa.xx.com/pv.gif?name=benjamin', {
    ip: '10.1.1.1'
}, 0.3);

directly use reporter

ZLoger.reporter('https://www.xxx.com/pv.gif?a=c&ip=10.10.1.2', function(url) {
    console.log(url);
});

Keywords

FAQs

Package last updated on 19 Feb 2017

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