@kiina/logger
v1.1.0
Published
This package contains a class meant to be used to presenting better logging on the console.
Downloads
6
Keywords
Readme
Logger
This package contains a class meant to be used to presenting better logging on the console.
Installation
npm install @kiina/logger
Usage
const Logger = require('@kiina/logger');
const logger = new Logger('MY-SCOPE');
logger.debug('Debug level logs', 'foo');
logger.error('Error level logs', 'bar');
logger.info('Info level logs', 'baz');
logger.start('Start level logs', 'foobar');
logger.success('Success level logs', 'barfoo');
logger.warning('Warning level logs', 'bazfoo');