live-log

A simple logging library.

Usage no npm install needed!

<script type="module">
  import liveLog from 'https://cdn.skypack.dev/live-log';
</script>

README

A simple logging library.

Install

npm i -S live-log

Usage

Singleton

import {log} from 'live-log'

log('foo')

Module namespaced

// modules/foo/index.js

const logger = require('live-log')('foo')

logger.log('foo')