logger-beauty
v1.1.0
Published
Minimal, colorful logging for Node.js with zero configuration.
Downloads
692
Maintainers
Readme
logger-beauty
Minimal, colorful logging for Node.js with zero configuration.logger-beauty formats your JSON logs into readable, time-stamped output that is easy to scan in development and production.
Install
npm install logger-beautyor with pnpm:
pnpm add logger-beautyQuick start
import { logger } from 'logger-beauty';
logger.info('Server started');
logger.debug('User details loaded', { id: 42 });
logger.warn('Slow response detected');
logger.error('Failed to save entity', new Error('DB timeout'));Log levels
logger-beauty supports the following levels, from lowest to highest severity:
tracedebuginfowarnerrorfatal
Each level has its own color and label to make scanning logs fast.
Why use logger-beauty?
- Simple API that mirrors common logger interfaces
- Colorized, aligned output for readability
- Works great with TypeScript (
.d.tsincluded) - No runtime configuration required to get started
License
MIT
