Log 'msg % args' with severity 'ERROR'. To pass exception information, use the keyword argument exc_info with a true value, e.g. logger.error("Houston, we have a %s", "major problem", exc_info=True)
(self, msg, *args, **kwargs)
| 1506 | self.warning(msg, *args, **kwargs) |
| 1507 | |
| 1508 | def error(self, msg, *args, **kwargs): |
| 1509 | """ |
| 1510 | Log 'msg % args' with severity 'ERROR'. |
| 1511 | |
| 1512 | To pass exception information, use the keyword argument exc_info with |
| 1513 | a true value, e.g. |
| 1514 | |
| 1515 | logger.error("Houston, we have a %s", "major problem", exc_info=True) |
| 1516 | """ |
| 1517 | if self.isEnabledFor(ERROR): |
| 1518 | self._log(ERROR, msg, args, **kwargs) |
| 1519 | |
| 1520 | def exception(self, msg, *args, exc_info=True, **kwargs): |
| 1521 | """ |
no test coverage detected