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

Function log

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

2151 root.debug(msg, *args, **kwargs)
2152
2153def log(level, msg, *args, **kwargs):
2154 """
2155 Log 'msg % args' with the integer severity 'level' on the root logger. If
2156 the logger has no handlers, call basicConfig() to add a console handler
2157 with a pre-defined format.
2158 """
2159 if len(root.handlers) == 0:
2160 basicConfig()
2161 root.log(level, msg, *args, **kwargs)
2162
2163def disable(level=CRITICAL):
2164 """

Callers 13

_normal_dist_inv_cdfFunction · 0.85
overlapMethod · 0.85
initlogFunction · 0.85
_sample_unweightedFunction · 0.85
_sample_weightedFunction · 0.85
_sample_unweightedFunction · 0.85
_sample_weightedFunction · 0.85
_M_initializeMethod · 0.85
operator()Method · 0.85
_M_initializeMethod · 0.85
operator()Method · 0.85
operator()Method · 0.85

Calls 2

basicConfigFunction · 0.85
logMethod · 0.45

Tested by

no test coverage detected