Message279350
> 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:57 | xiang.zhang | set | recipients:
+ xiang.zhang, rhettinger, vinay.sajip, Al.Sweigart |
2016-10-25 03:28:57 | xiang.zhang | set | messageid: <1477366137.36.0.706248062473.issue28524@psf.upfronthosting.co.za> |
2016-10-25 03:28:57 | xiang.zhang | link | issue28524 messages |
2016-10-25 03:28:57 | xiang.zhang | create | |
|