pino-formatter
v1.1.13
Published
Colorized TypeScript logger with pretty output, log levels, and timestamps.
Maintainers
Readme
pino-formatter
A colorized logger utility similar to pino-pretty with support for multiple log levels, timestamps, and formatted output.
Installation
npm install pino-formatterUsage
import { logger } from 'pino-formatter';
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
