is_debug_set

(function from pyomo.common.log)

pyomo.common.log.is_debug_set(logger)[source]

A variant of Logger.isEnableFor that returns False if NOTSET

The implementation of logging.Logger.isEnableFor() returns True if the effective level of the logger is NOTSET. This variant only returns True if the effective level of the logger is NOTSET < level <= DEBUG. This is used in Pyomo to detect if the user explicitly requested DEBUG output.

This implementation mimics the core functionality of isEnabledFor() by directly querying the (undocumented) ‘manager’ attribute to get the current value for logging.disabled()