0.1.1 • Published 4 years ago

@skordyr/logger v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

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');
0.1.1

4 years ago

0.1.0

4 years ago