Lines Matching refs:exc_info
171 return sys.exc_info()[2].tb_frame.f_back
293 msg, args, exc_info, func=None, sinfo=None, **kwargs):
331 self.exc_info = exc_info
691 if record.exc_info:
695 record.exc_text = self.formatException(record.exc_info)
1029 t, v, tb = sys.exc_info()
1471 To pass exception information, use the keyword argument exc_info with
1474 logger.debug("Houston, we have a %s", "thorny problem", exc_info=1)
1483 To pass exception information, use the keyword argument exc_info with
1486 logger.info("Houston, we have a %s", "interesting problem", exc_info=1)
1495 To pass exception information, use the keyword argument exc_info with
1498 logger.warning("Houston, we have a %s", "bit of a problem", exc_info=1)
1512 To pass exception information, use the keyword argument exc_info with
1515 logger.error("Houston, we have a %s", "major problem", exc_info=1)
1520 def exception(self, msg, *args, exc_info=True, **kwargs):
1524 self.error(msg, *args, exc_info=exc_info, **kwargs)
1530 To pass exception information, use the keyword argument exc_info with
1533 logger.critical("Houston, we have a %s", "major disaster", exc_info=1)
1548 To pass exception information, use the keyword argument exc_info with
1551 logger.log(level, "We have a %s", "mysterious problem", exc_info=1)
1595 def makeRecord(self, name, level, fn, lno, msg, args, exc_info,
1601 rv = _logRecordFactory(name, level, fn, lno, msg, args, exc_info, func,
1610 def _log(self, level, msg, args, exc_info=None, extra=None, stack_info=False,
1627 if exc_info:
1628 if isinstance(exc_info, BaseException):
1629 exc_info = (type(exc_info), exc_info, exc_info.__traceback__)
1630 elif not isinstance(exc_info, tuple):
1631 exc_info = sys.exc_info()
1633 exc_info, func, extra, sinfo)
1868 def exception(self, msg, *args, exc_info=True, **kwargs):
1872 self.log(ERROR, msg, *args, exc_info=exc_info, **kwargs)
1913 def _log(self, level, msg, args, exc_info=None, extra=None, stack_info=False):
1921 exc_info=exc_info,
2117 def exception(msg, *args, exc_info=True, **kwargs):
2123 error(msg, *args, exc_info=exc_info, **kwargs)