MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / critical

Function critical

tools/python-3.11.9-amd64/Lib/logging/__init__.py:2084–2092  ·  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

2082 return Logger.manager.getLogger(name)
2083
2084def critical(msg, *args, **kwargs):
2085 """
2086 Log a message with severity 'CRITICAL' on the root logger. If the logger
2087 has no handlers, call basicConfig() to add a console handler with a
2088 pre-defined format.
2089 """
2090 if len(root.handlers) == 0:
2091 basicConfig()
2092 root.critical(msg, *args, **kwargs)
2093
2094def fatal(msg, *args, **kwargs):
2095 """

Callers 1

fatalFunction · 0.85

Calls 2

basicConfigFunction · 0.85
criticalMethod · 0.45

Tested by

no test coverage detected