-
Notifications
You must be signed in to change notification settings - Fork 3
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
gravitas should contain logging equivalent options #56
Comments
It would be really nice if the gravitas argument accepted the adaptor values directly.
We could still include gravitas.py values |
I wasn't considering the fact a test suite might use multiple adapters (adaptor? adapter? am I British?) at same time. Which seriously complicates trying to pass in the adapter value directly. |
From our conversation though, it would be nice if each adapter supplied the appropriate equivalent, just keyed back to |
I think this might be a good place to use enum. It allows the gravatas value types to still be |
I think what I want to do is allow users to pass in either the int value in accordance with whatever Adapter they are using or pass in the So the following two lines would be equivalent When they pass in the integer, the narrator just passes it through. This assumes the user knows better if they are using more than one adapter. |
When using a pacing function the option to change the gravitas needs to have the ability to pass in the equivalent terminology used by logging module.
@beat("msg", gravitas.INFO)
This would make using gravitas more accessible to folks who are already familiar with python logging.
The text was updated successfully, but these errors were encountered: