Xiang Zhang added the comment:

> We could use sys.maxsize instead of logging.CRITICAL to disable any custom 
> logging levels as well if this is a concern.

sys.maxsize is not the upper bound limit of integers in Python. There is no 
such value in Python3.

> The use case I've found is that I often have logging enabled while writing 
> code, and then want to shut it off once I've finished.

How about logger.disabled = True. This can work even if there are custom 
levels. But it's not a documented feature.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28524>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to