DEV Community

Cover image for Introducing Bea Logger: A colorful and customizable logging library for Node.js
Henrick Ferreira Saraiva
Henrick Ferreira Saraiva

Posted on

Introducing Bea Logger: A colorful and customizable logging library for Node.js

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');
Enter fullscreen mode Exit fullscreen mode

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
Enter fullscreen mode Exit fullscreen mode

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:

Feel free to test, give feedback, or contribute! Any suggestions or constructive criticism are very welcome.

Thank you! 😊

Top comments (0)