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

Add a logger #8

Open
eyad-hussein opened this issue Dec 13, 2023 · 0 comments
Open

Add a logger #8

eyad-hussein opened this issue Dec 13, 2023 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@eyad-hussein
Copy link
Collaborator

eyad-hussein commented Dec 13, 2023

Replace all print statements with logs using python's builtin logging module.

import logging

make sure the output message has the correct logging level(look in the docs).

Also, make sure to name the logger object following pep 8 style.

Name the logger object as follows:

_LOG = logging.getLogger(__name__)

refer to the following docs:
https://docs.python.org/3/howto/logging.html#advanced-logging-tutorial

You can also look for more advanced tutorials if you are comfortable enough:
https://www.youtube.com/watch?v=9L77QExPmI0

IMPORTANT NOTE
Make sure to assign yourself as the assignee if you are going to do the this issue.

@eyad-hussein eyad-hussein added enhancement New feature or request good first issue Good for newcomers labels Dec 13, 2023
@omar-abdelgawad omar-abdelgawad removed this from the TUNIT Implementation milestone Jan 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants