@etherprojects/logger
v5.8.1
Published
Useful pino logger and formatter with colorized output
Maintainers
Readme
logger
A colorized logger utility similar to pino-pretty with support for multiple log levels, timestamps, and formatted output on etherprojects.
Installation
npm install @etherprojects/loggerUsage
import { logger } from '@etherprojects/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
