You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Choice of these names is entirely up to the developer who is using logging.
Typically apps aim for dotted module paths, per the __name__ pattern. Deviations from this can cause issues, such as not propagating through the intended chain of loggers, such as through an acme root in the example.
Let's detect strings passed to getLogger that aren't valid module paths.
The text was updated successfully, but these errors were encountered:
Description
Sometimes explicit calls to
getLogger()
don't use a dotted module path, but some other characters that aren't valid in module names like hyphens:Although the
getLogger()
docs say:Typically apps aim for dotted module paths, per the
__name__
pattern. Deviations from this can cause issues, such as not propagating through the intended chain of loggers, such as through anacme
root in the example.Let's detect strings passed to
getLogger
that aren't valid module paths.The text was updated successfully, but these errors were encountered: