This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author xiang.zhang
Recipients Al.Sweigart, rhettinger, vinay.sajip, xiang.zhang
Date 2016-10-25.03:28:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> 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.
Date User Action Args
2016-10-25 03:28:57xiang.zhangsetrecipients: + xiang.zhang, rhettinger, vinay.sajip, Al.Sweigart
2016-10-25 03:28:57xiang.zhangsetmessageid: <>
2016-10-25 03:28:57xiang.zhanglinkissue28524 messages
2016-10-25 03:28:57xiang.zhangcreate