Log 'msg % args' with the integer severity 'level'. To pass exception information, use the keyword argument exc_info with a true value, e.g. logger.log(level, "We have a %s", "mysterious problem", exc_info=True)
(self, level, msg, *args, **kwargs)
| 1542 | self.critical(msg, *args, **kwargs) |
| 1543 | |
| 1544 | def log(self, level, msg, *args, **kwargs): |
| 1545 | """ |
| 1546 | Log 'msg % args' with the integer severity 'level'. |
| 1547 | |
| 1548 | To pass exception information, use the keyword argument exc_info with |
| 1549 | a true value, e.g. |
| 1550 | |
| 1551 | logger.log(level, "We have a %s", "mysterious problem", exc_info=True) |
| 1552 | """ |
| 1553 | if not isinstance(level, int): |
| 1554 | if raiseExceptions: |
| 1555 | raise TypeError("level must be an integer") |
| 1556 | else: |
| 1557 | return |
| 1558 | if self.isEnabledFor(level): |
| 1559 | self._log(level, msg, args, **kwargs) |
| 1560 | |
| 1561 | def findCaller(self, stack_info=False, stacklevel=1): |
| 1562 | """ |
no test coverage detected