styled-text-logger
v1.3.1
Published
Useful text logger and formatter with styled output
Downloads
359
Maintainers
Readme
styled-text-logger
A styled logger utility similar to text with support for multiple log levels, timestamps, and formatted output.
Installation
npm install styled-text-loggerUsage
import { logger } from 'styled-text-logger';
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 for each log level
- ✅ Emoji icons for visual distinction
- ✅ ISO timestamp formatting
- ✅ TypeScript support
- ✅ Zero dependencies
License
MIT
