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)
| 1575 | self.critical(msg, *args, **kwargs) |
| 1576 | |
| 1577 | def log(self, level, msg, *args, **kwargs): |
| 1578 | """ |
| 1579 | Log 'msg % args' with the integer severity 'level'. |
| 1580 | |
| 1581 | To pass exception information, use the keyword argument exc_info with |
| 1582 | a true value, e.g. |
| 1583 | |
| 1584 | logger.log(level, "We have a %s", "mysterious problem", exc_info=True) |
| 1585 | """ |
| 1586 | if not isinstance(level, int): |
| 1587 | if raiseExceptions: |
| 1588 | raise TypeError("level must be an integer") |
| 1589 | else: |
| 1590 | return |
| 1591 | if self.isEnabledFor(level): |
| 1592 | self._log(level, msg, args, **kwargs) |
| 1593 | |
| 1594 | def findCaller(self, stack_info=False, stacklevel=1): |
| 1595 | """ |
no test coverage detected