3.0.0 • Published 8 years ago

window-onerror-logger v3.0.0

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
8 years ago

Window OnError Logger Build Status NPM version

This is a tiny (< 1K ungzipped) window.onerror logger which sends the errors to a /log endpoint.

Features

  • errors which occur in a single tick are batched and sent in a single XHR
  • identical errors are suppressed
  • legacy browsers which don't support XMLHttpRequest are not supported by this logger
  • only the absolutely necessary features are implemented in order to minimize the surface area for bugs

Usage

Your application should fetch the node_modules/window-onerror-logger/logger.min.js from disk (after npm install window-onerror-logger, of course) and add it as the first element in the <head>.

<html>
  <head>
    <script type="javascript">
      ${getFileFromDisk('node_modules/window-onerror-logger/dist/logger.min.js')}
    </script>
  </head>
  <body>
    <!-- ... -->
  </body>
</html>

License

Apache-2.0

3.0.0

8 years ago

2.0.1

8 years ago

2.0.0

8 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