Hello everyone!
I'd like to share a project I recently developed: Bea Logger 🌸
It's a logging library for Node.js written in TypeScript, created with a focus on providing colorful and highly customizable outputs for applications.
Main features:
- Colorful outputs with ANSI color support
- Highly customizable (colors, formats, and styles)
- Multiple logging levels (Error, Success, Info, Trace, Debug, Fatal)
- Optional timestamps with ISO formatting
- Complete TypeScript typing
- Simple and intuitive API
Quick example:
import Logger from '@rickferrdev/bea-logger';
const logger = new Logger();
logger.info('Informational message');
logger.success('Operation completed successfully');
logger.error('Error during execution');
Output:
[INFO] (2023-10-05T14:30:00.000Z) Informational message
[SUCCESS] (2023-10-05T14:30:00.001Z) Operation completed successfully
[ERROR] (2023-10-05T14:30:00.002Z) Execution error
About development:
This project was created primarily for educational and study purposes, but it is fully functional and ready to use. It was a very enriching journey to deepen my knowledge of TypeScript, library development, and publishing on npm.
Links:
- npm: https://www.npmjs.com/package/@rickferrdev/bea-logger
- GitHub: https://github.com/rickferrdev/bea-logger
- Documentation in Portuguese: available in the repository
Feel free to test, give feedback, or contribute! Any suggestions or constructive criticism are very welcome.
Thank you! 😊
Top comments (0)