Documentation Menu

Installation

If you use .Net, click here.

1. Add script tag

You can load JSNLog from a CDN:

<script crossorigin="anonymous" src="https://cdnjs.cloudflare.com/ajax/libs/jsnlog/2.27.1/jsnlog.min.js"></script>

2. Create end point on your server

You will need to create a server side end point to receive log messages from jsnlog.js and somehow store them (details).

3. Prevent script error obfuscation

If you load your own script files or external script files from different domains, consider adding crossorigin="anonymous" to prevent the browser from obfuscating script errors (details). For example:

<script crossorigin="anonymous" src="https://code.jquery.com/jquery-2.2.4.min.js"></script>