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.

Will be useful mostly for debugging purposes instead of temporarily
modifying the code.

Kinda surprised it doesn't exist tbh.

Bar Harel
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/I74LVJWJLE2LUCCZGOF5A5JDSDHJ6WX2/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to