@skordyr/loggerdeprecated

a logger for library

Usage no npm install needed!

<script type="module">
  import skordyrLogger from 'https://cdn.skypack.dev/@skordyr/logger';
</script>

README

logger

a logger for library

Install

yarn add @skordyr/logger

Usage

import { loggerManager, DebugLogger } from '@skordyr/logger';

const logger = loggerManager.getLogger('library');

DebugLogger.enable('@logger:*');

logger.silly('finer-grained informational events than the `debug`');

logger.debug('fine-grained informational events that are most useful to debug an application');

logger.verbose('fine-grained informational events than the `info`');

logger.info('informational messages that highlight the progress of the application at coarse-grained level');

logger.warn('potentially harmful situations');

logger.error('error events that might still allow the application to continue running');