(self, loggers_to_disable: list[str])
| 724 | self._disable_loggers(loggers_to_disable=config.option.logger_disable) |
| 725 | |
| 726 | def _disable_loggers(self, loggers_to_disable: list[str]) -> None: |
| 727 | if not loggers_to_disable: |
| 728 | return |
| 729 | |
| 730 | for name in loggers_to_disable: |
| 731 | logger = logging.getLogger(name) |
| 732 | logger.disabled = True |
| 733 | |
| 734 | def _create_formatter(self, log_format, log_date_format, auto_indent): |
| 735 | # Color option doesn't exist if terminal plugin is disabled. |