Description:
This PR adds a logger in logger.js to log messages to console and Telegram. Obtain your Telegram bot API key from BotFather and user ID from @userinfobot. Configure them as TELEGRAM_BOT_TOKEN and TELEGRAM_USER_ID. The logger's demonstrated usage in various project areas highlights its adaptability.
Changes:
Implemented logger.log to log messages.
Messages logged to console via console.log.
Messages sent to Telegram if bot token and user ID are set.
Testing:
Tested logger locally with and without configured Telegram credentials.
Confirmed messages logged to console and sent to Telegram as expected.
Notes:
Integration with Telegram provides real-time notifications.
Logger enhances debugging and monitoring capabilities.
Feel free to adjust further to fit your project's style and conventions.
Description: This PR adds a logger in
logger.js
to log messages to console and Telegram. Obtain your Telegram bot API key from BotFather and user ID from @userinfobot. Configure them asTELEGRAM_BOT_TOKEN
andTELEGRAM_USER_ID
. The logger's demonstrated usage in various project areas highlights its adaptability.Changes:
logger.log
to log messages.console.log
.Testing:
Notes:
Feel free to adjust further to fit your project's style and conventions.