MCPcopy Index your code
hub / github.com/python/cpython / critical

Method critical

Lib/logging/__init__.py:1560–1570  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

1558 self.error(msg, *args, exc_info=exc_info, **kwargs)
1559
1560 def critical(self, msg, *args, **kwargs):
1561 """
1562 Log 'msg % args' with severity 'CRITICAL'.
1563
1564 To pass exception information, use the keyword argument exc_info with
1565 a true value, e.g.
1566
1567 logger.critical("Houston, we have a %s", "major disaster", exc_info=True)
1568 """
1569 if self.isEnabledFor(CRITICAL):
1570 self._log(CRITICAL, msg, args, **kwargs)
1571
1572 def fatal(self, msg, *args, **kwargs):
1573 """

Callers 15

fatalMethod · 0.95
criticalFunction · 0.45
test_config7_okMethod · 0.45
test_config_8a_okMethod · 0.45
test_queue_listenerMethod · 0.45
test_criticalMethod · 0.45
test_extra_in_recordsMethod · 0.45
test_extra_mergedMethod · 0.45

Calls 2

isEnabledForMethod · 0.95
_logMethod · 0.95