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)
| 1524 | self.error(msg, *args, exc_info=exc_info, **kwargs) |
| 1525 | |
| 1526 | def critical(self, msg, *args, **kwargs): |
| 1527 | """ |
| 1528 | Log 'msg % args' with severity 'CRITICAL'. |
| 1529 | |
| 1530 | To pass exception information, use the keyword argument exc_info with |
| 1531 | a true value, e.g. |
| 1532 | |
| 1533 | logger.critical("Houston, we have a %s", "major disaster", exc_info=True) |
| 1534 | """ |
| 1535 | if self.isEnabledFor(CRITICAL): |
| 1536 | self._log(CRITICAL, msg, args, **kwargs) |
| 1537 | |
| 1538 | def fatal(self, msg, *args, **kwargs): |
| 1539 | """ |