pcdsutils.log.install_log_warning_handler

pcdsutils.log.install_log_warning_handler(logger: ~logging.Logger = <Logger pcdsutils.log.warnings (WARNING)>) None[source]

Replaces warnings.showwarning with the log_warning_handler above.

Parameters:
loggerLogger, optional

Use this argument to override the default logger for the warnings handler, which is the warnings_logger defined in this module. This is currently the pcdsutils.log.warnings logger.