python-snippets
python-snippets copied to clipboard
Basic logging shortcut interest?
In my ifmain block i often put:
from logging import basicConfig, DEBUG, INFO, debug, info, warning, error
basicConfig(level=DEBUG)
Then I can easily use debug("hello main") and so on in my code, instead of print...
Is this something you want a pr for? If yes, any requirements or wishes for the binding?