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

Function error

tools/python-3.11.9-amd64/Lib/logging/__init__.py:2100–2108  ·  view source on GitHub ↗

Log a message with severity 'ERROR' 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

2098 critical(msg, *args, **kwargs)
2099
2100def error(msg, *args, **kwargs):
2101 """
2102 Log a message with severity 'ERROR' on the root logger. If the logger has
2103 no handlers, call basicConfig() to add a console handler with a pre-defined
2104 format.
2105 """
2106 if len(root.handlers) == 0:
2107 basicConfig()
2108 root.error(msg, *args, **kwargs)
2109
2110def exception(msg, *args, exc_info=True, **kwargs):
2111 """

Callers 1

exceptionFunction · 0.70

Calls 2

basicConfigFunction · 0.85
errorMethod · 0.45

Tested by

no test coverage detected