-
Notifications
You must be signed in to change notification settings - Fork 22
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
getLevelName
is missing a part of the behavior
#51
Comments
I agree that for the sake of backwards compatibility this should be modified, |
I have used it in a private codebase to convert a logging level as a import logging
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("logging-level", default="DEBUG")
...
args = parser.parse_args()
level = logging.getLevelName(args.logging_level)
logging.basicConfig(..., level=level) There are other ways to implement this (with their own problems..):
I totally agree that this behavior of
|
Yeah I agree, seems like it shiuld be just kept for backwards conpatibility. |
logging.getLevelName
works as a two way street between level and level names:In picologging, the second way raises a TypeError:
The text was updated successfully, but these errors were encountered: