MCPcopy Index your code
hub / github.com/RustPython/RustPython / critical

Method critical

Lib/logging/__init__.py:1559–1569  ·  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

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

Callers 14

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

Tested by 9

test_config7_okMethod · 0.36
test_config_8a_okMethod · 0.36
test_queue_listenerMethod · 0.36
test_criticalMethod · 0.36
test_extra_in_recordsMethod · 0.36
test_extra_mergedMethod · 0.36