@viva-eng/logger-web

A logger library for for web browsers

Usage no npm install needed!

<script type="module">
  import vivaEngLoggerWeb from 'https://cdn.skypack.dev/@viva-eng/logger-web';
</script>

README

Super simple logger util for abstracting away console.log calls to a common interface to assist in making isomorphic libraries

$ npm install --save @viva-eng/logger-web
import { logger, setLogLevel } from '@viva-eng/logger-web';

setLogLevel('info');

logger.error('Some error here');
logger.warn('Some warning here');
logger.info('Some info here');
logger.verbose('This is below the set log level and will not show up');
logger.debug('This is below the set log level and will not show up');
logger.silly('This is below the set log level and will not show up');