GitHunt
AL

alexgrozav/logger

Super basic and lightweight JavaScript / TypeScript logger utility with message types, colors and icons.

@grozav/logger

Super basic and lightweight JavaScript / TypeScript logger utility with message types, colors and icons by @alexgrozav.

✅ Fully typed

✅ CommonJS and ESM

Installation

npm i -S @grozav/logger

Usage

import { Logger } from '@grozav/logger';

Logger.info('Heads up! This message needs your attention, but it\'s not super important.');
Logger.success('Well done! You successfully read this important message.');
Logger.warning('Warning! Better check yourself, you\'re not looking too good.');
Logger.danger('Oh snap! Change a few things up and try submitting again.');
Logger.default('Logging through! This message is just informational.');
Logger.log('I\'m basically console.log().');

License

ISC

Contributors

Other
Created July 4, 2022
Updated July 4, 2022