Log 'msg % args' with severity 'CRITICAL'. To pass exception information, use the keyword argument exc_info with a true value, e.g. logger.critical("Houston, we have a %s", "major disaster", exc_info=True)
(self, msg, *args, **kwargs)
| 1558 | self.error(msg, *args, exc_info=exc_info, **kwargs) |
| 1559 | |
| 1560 | def critical(self, msg, *args, **kwargs): |
| 1561 | """ |
| 1562 | Log 'msg % args' with severity 'CRITICAL'. |
| 1563 | |
| 1564 | To pass exception information, use the keyword argument exc_info with |
| 1565 | a true value, e.g. |
| 1566 | |
| 1567 | logger.critical("Houston, we have a %s", "major disaster", exc_info=True) |
| 1568 | """ |
| 1569 | if self.isEnabledFor(CRITICAL): |
| 1570 | self._log(CRITICAL, msg, args, **kwargs) |
| 1571 | |
| 1572 | def fatal(self, msg, *args, **kwargs): |
| 1573 | """ |