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

Function log

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

2228 root.debug(msg, *args, **kwargs)
2229
2230def log(level, msg, *args, **kwargs):
2231 """
2232 Log 'msg % args' with the integer severity 'level' on the root logger. If
2233 the logger has no handlers, call basicConfig() to add a console handler
2234 with a pre-defined format.
2235 """
2236 if len(root.handlers) == 0:
2237 basicConfig()
2238 root.log(level, msg, *args, **kwargs)
2239
2240def disable(level=CRITICAL):
2241 """

Callers 6

logistic_kernelFunction · 0.50
sigmoid_kernelFunction · 0.50
overlapMethod · 0.50
_normal_dist_inv_cdfFunction · 0.50
filterFunction · 0.50
matchFunction · 0.50

Calls 2

basicConfigFunction · 0.85
logMethod · 0.45

Tested by

no test coverage detected