๐งฐ Essential TS utilities for smooth development! Simplify coding life with handy functions. ๐ง๐ป
Minimal logger utility using pino
package. It provides a simple way to log messages with different log levels.
trace
debug
info
warn
error
fatal
You can also customize the logger by providing custom options.
- Copy the
logger.ts
file to your project. - Install the required packages.
npm install pino
- Import the logger in your file.
- Use the logger to log messages.
import { logger } from './logger';
logger.info('Hello, world!');
You can also customize the logger by providing custom options.
import { logger } from './logger';
logger.setLevel('debug');
logger.setMessagesKey('message');
Feel free to contribute to this project. You can contribute by:
- Reporting issues
- Suggesting new features
- Adding new utilities
- Improving existing utilities
- Writing test cases
This project is licensed under the MIT License - see the LICENSE file for details.