bundles / astropy 7.0.1 / astropy / logger / AstropyLogger / enable_warnings_logging
function
astropy.logger:AstropyLogger.enable_warnings_logging
source: /astropy/logger.py :251
Signature
def enable_warnings_logging ( self ) Summary
Enable logging of warnings.warn() calls.
Extended Summary
Once called, any subsequent calls to warnings.warn() are redirected to this logger and emitted with level WARN. Note that this replaces the output from warnings.warn.
This can be disabled with disable_warnings_logging.
Aliases
-
astropy.logger.AstropyLogger.enable_warnings_logging