CodeandCoffeeCommunity / Barista-bot

I'm Barista :robot: - a robotic discord volunteer at the Code and Coffee Community.
MIT License
5 stars 3 forks source link

Improve logging #50

Open abe-101 opened 1 year ago

Zhreyu commented 1 year ago

hey I would like to work on this issue!!, could you please explain a bit more about the problem?

abe-101 commented 1 year ago

Hey @Zhreyu Thank you for expressing interest on working on this>

Currently the bot uses print to display any sort of log message https://github.com/CodeandCoffeeCommunity/Barista-bot/blob/af3d28c2e3bdf6263cf871826a4bfbe7a37f2991/main.py#L36 I'd like to change them all to a proper log message and even take it futher by adding useful log messages through out application

I can point you to the framework documentation on how to set up a logger https://discordpy.readthedocs.io/en/stable/logging.html?highlight=logging#setting-up-logging

abe-101 commented 1 year ago

@Zhreyu take a look at this commit https://github.com/abe-101/leetcode-bot/commit/afbeff461ee8627fdf45061417e2fffd086bd1f9