terminal-logger-pack
v1.1.1
Published
Pretty colorized changelog-style logger with timestamps and level icons
Downloads
548
Maintainers
Readme
js-logger-pack
A pretty, colorized logger that outputs changelog-style lines with timestamps, level icons, and colored levels—ideal for CLI tools and development logs.
Installation
npm install js-logger-packUsage
import { logger } from 'js-logger-pack';
logger.info('Application started');
logger.debug('Debug information', { key: 'value' });
logger.warn('Warning message');
logger.error('Error occurred', new Error('Something went wrong'));
logger.fatal('Fatal error');Log Levels
trace– Detailed trace informationdebug– Debug informationinfo– General informationwarn– Warning messageserror– Error messagesfatal– Fatal errors
Features
- Colorized output per log level
- Emoji icons for quick visual scanning
- ISO timestamps in changelog style
- TypeScript support
- Zero runtime dependencies
License
MIT
