
Feb. 20, 2020
4:39 p.m.
On 2020-02-19 17:12, Bar Harel wrote:
Another idea I've had that may be of use:
PYTHONLOGGING environment variable.
Setting PYTHONLOGGING to any log level or level name will initialize logging.basicConfig() with that appropriate level.
Another option would be that -x dev or a different -x logging will initialize basic config.
As a heavy user of logging, I like this one a lot. In a new project, the lack of such a feature allows one to stick with print() perhaps longer than is prudent. -Mike