I think it’s a “Bad Idea” to use an environment variable — who knows what Python script may be running on a given system?
But a standard command line argument to the interpreter could be useful.
On Thu, Feb 20, 2020 at 8:51 AM Mike Miller firstname.lastname@example.org wrote:
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
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 _______________________________________________ Python-ideas mailing list -- email@example.com To unsubscribe send an email to firstname.lastname@example.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://email@example.com/message/US4RHU... Code of Conduct: http://python.org/psf/codeofconduct/