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

Function critical

Lib/logging/__init__.py:2161–2169  ·  view source on GitHub ↗

Log a message with severity 'CRITICAL' on the root logger. If the logger has no handlers, call basicConfig() to add a console handler with a pre-defined format.

(msg, *args, **kwargs)

Source from the content-addressed store, hash-verified

2159 return Logger.manager.getLogger(name)
2160
2161def critical(msg, *args, **kwargs):
2162 """
2163 Log a message with severity 'CRITICAL' on the root logger. If the logger
2164 has no handlers, call basicConfig() to add a console handler with a
2165 pre-defined format.
2166 """
2167 if len(root.handlers) == 0:
2168 basicConfig()
2169 root.critical(msg, *args, **kwargs)
2170
2171def fatal(msg, *args, **kwargs):
2172 """

Callers 1

fatalFunction · 0.85

Calls 2

basicConfigFunction · 0.85
criticalMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…