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

Use logging tool instead of print statements to communicate with the user #22

Open
yakutovicha opened this issue Jan 5, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@yakutovicha
Copy link
Member

No description provided.

@yakutovicha yakutovicha added the enhancement New feature or request label Jan 5, 2024
@yakutovicha yakutovicha self-assigned this Jan 5, 2024
@Liam-Deacon
Copy link

Liam-Deacon commented Jan 13, 2024

Hi @yakutovicha - Consider using a tool like loguru as it is very easy to start replacing prints with more meaningful (and configurable) logging:

from loguru import logger

logger.trace("The user will not see this, but maybe it is useful when doing a deep dive...")
logger.warning("Something does not look quite right...")

try:
    1/0
except:
    logger.exception("Oh dear")  # stack trace recorded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants