Get started with jsnlog CDN

MIT licensed

JSNLog is a lightweight JS logging library for the browser.

Tags:
  • logging
  • client
  • exceptions
  • ajax
  • timeouts
  • debugging
  • winston

Stable version

Copied!

How to start using jsnlog CDN


<!DOCTYPE html>
<html>
<head>
    <title>Get started with jsnlog CDN - cdnhub.io</title>
    <script src="https://cdn.cdnhub.io/jsnlog/2.30.0/jsnlog.min.js"></script>
</head>
<body>
    <button id="log-btn">Log Message</button>
    <script>
        const log = new JSNLog('myApp');

        document.getElementById('log-btn').addEventListener('click', () => {
            log.info('Button clicked');
        });
    </script>
</body>
</html>
Copied!
Copied!
Copied!

All versions