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

Expand rules to LoggerAdapter objects #49

Open
adamchainz opened this issue Sep 7, 2023 · 1 comment
Open

Expand rules to LoggerAdapter objects #49

adamchainz opened this issue Sep 7, 2023 · 1 comment

Comments

@adamchainz
Copy link
Owner

Description

LoggerAdapter objects are basically logger wrappers with contextual info. They have all the log methods like info().

If we could trace which names (per scope) seem to refer to logger adapters, all our logger-method-specific rules to pick up on misuse with logger adapters too.

@adamchainz
Copy link
Owner Author

LoggerAdapters seem really unpopular. GitHub code search has 6.1 million hits for logging language:python but only 9k for LoggerAdapter language:python. Also I don’t remember ever seeing them in code or writing.

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

No branches or pull requests

1 participant