IgKniteDev / IgKnite

A unified, Swiss-grade bot, designed for providing fine moderation & music on Discord
https://igknitedev.github.io/docs
MIT License
72 stars 26 forks source link

[FEATURE] Implement logging #280

Open ultralegendary opened 2 months ago

ultralegendary commented 2 months ago

Description

Summary

Implement logging to log the errors which occurs when processing commands.

Purpose

This will provide us visibility to backtrack and debug the issue when any command produce some error in production.

Proposed Idea

Ideally, log the error to a discord channel(this should be configurable by the owner from the commands) is highly efficient compared to logging to a file or the terminal where the bot runs in this case.

What to include

Logging should include the information:

Screenshots

No response

Additional information

No response

hitblast commented 2 months ago

@ultralegendary The implementation of logging has been long due, so I guess it'd be great if you'd like to work on it. Let me know if I should assign you.

ultralegendary commented 1 month ago

Hey, Please assign this to me. I am adding logging to all the cogs. This will automatically log actions to the console where the bot is running. I am replacing print statements with loggers.

hitblast commented 1 month ago

@ultralegendary Alright, assigning it to you.