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

Function critical

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

2149 return Logger.manager.getLogger(name)
2150
2151def critical(msg, *args, **kwargs):
2152 """
2153 Log a message with severity 'CRITICAL' on the root logger. If the logger
2154 has no handlers, call basicConfig() to add a console handler with a
2155 pre-defined format.
2156 """
2157 if len(root.handlers) == 0:
2158 basicConfig()
2159 root.critical(msg, *args, **kwargs)
2160
2161def fatal(msg, *args, **kwargs):
2162 """

Callers 1

fatalFunction · 0.85

Calls 3

lenFunction · 0.85
basicConfigFunction · 0.85
criticalMethod · 0.45

Tested by

no test coverage detected