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

Function log

Lib/logging/__init__.py:2220–2228  ·  view source on GitHub ↗

Log 'msg % args' with the integer severity 'level' on the root logger. If the logger has no handlers, call basicConfig() to add a console handler with a pre-defined format.

(level, msg, *args, **kwargs)

Source from the content-addressed store, hash-verified

2218 root.debug(msg, *args, **kwargs)
2219
2220def log(level, msg, *args, **kwargs):
2221 """
2222 Log 'msg % args' with the integer severity 'level' on the root logger. If
2223 the logger has no handlers, call basicConfig() to add a console handler
2224 with a pre-defined format.
2225 """
2226 if len(root.handlers) == 0:
2227 basicConfig()
2228 root.log(level, msg, *args, **kwargs)
2229
2230def disable(level=CRITICAL):
2231 """

Callers

nothing calls this directly

Calls 3

lenFunction · 0.85
basicConfigFunction · 0.85
logMethod · 0.45

Tested by

no test coverage detected