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

Enhancement/33 provide a way to enable or disable logging #61

Conversation

DMcP89
Copy link
Collaborator

@DMcP89 DMcP89 commented Apr 24, 2024

Removes the custom YahooLogger class in favor of a simple logger object while maintaining the same formatting.

This will allow users to disable the logger by simply calling:

yahoo_oauth_logger = logging.getLogger("yahoo_oauth")
yahoo_oauth_logger.disabled = True

Currently yahoo-oauth only uses debug logging statements so it can also be disabled by adjusting its log level:

yahoo_oauth_logger = logging.getLogger("yahoo_oauth")
yahoo_oauth_logger.setLevel("INFO")

@DMcP89 DMcP89 requested a review from josuebrunel April 24, 2024 04:41
@josuebrunel josuebrunel merged commit 520a8f5 into josuebrunel:master Apr 26, 2024
@josuebrunel josuebrunel self-assigned this Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants