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

Require logger as name for getLogger(__name__) #26

Open
adamchainz opened this issue Aug 25, 2023 · 2 comments
Open

Require logger as name for getLogger(__name__) #26

adamchainz opened this issue Aug 25, 2023 · 2 comments

Comments

@adamchainz
Copy link
Owner

adamchainz commented Aug 25, 2023

Description

A small rule for consistency in a code base, to avoid modules using other names like:

import logging
log = logging.getLogger(__name__)

Maybe opt-in

@craigds
Copy link

craigds commented Sep 11, 2023

IMO no, surely that's totally up to the user? We like to use L

@adamchainz
Copy link
Owner Author

Maybe it would be better to opt-in by configuring the preferred name?

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

2 participants