logbit
TypeScript icon, indicating that this package has built-in type declarations

1.3.2 • Public • Published

LogBit

LogBit is a simple logger tool for the command line and the browser. It offers styling that makes it easy to see the log info at a glance. LogBit also makes it easy to understand where a log came from, since it shows the name of the logger that created it in every message.

Usage

import LogBit, { setLogLevel, LOG_LEVELS } from 'logbit';
setLogLevel(LOG_LEVELS.DEBUG);
const log = new LogBit('ExampleModule');
log.debug('Debug');
log.info('Info');
log.warn('Warn');
log.error('Error');

Readme

Keywords

none

Package Sidebar

Install

npm i logbit

Weekly Downloads

1

Version

1.3.2

License

MIT

Unpacked Size

7.41 kB

Total Files

7

Last publish

Collaborators

  • scratchyone