Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve logging #50

Open
abe-101 opened this issue Oct 2, 2023 · 3 comments
Open

Improve logging #50

abe-101 opened this issue Oct 2, 2023 · 3 comments
Assignees

Comments

@abe-101
Copy link
Member

abe-101 commented Oct 2, 2023

No description provided.

@abe-101 abe-101 self-assigned this Oct 2, 2023
@Zhreyu
Copy link

Zhreyu commented Oct 4, 2023

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

@abe-101
Copy link
Member Author

abe-101 commented Oct 6, 2023

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

Currently the bot uses print to display any sort of log message

print(f"Loaded extension '{extension}'")

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
Copy link
Member Author

abe-101 commented Nov 2, 2023

@Zhreyu take a look at this commit abe-101/leetcode-bot@afbeff4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants