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

Function debug

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

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

2141 root.info(msg, *args, **kwargs)
2142
2143def debug(msg, *args, **kwargs):
2144 """
2145 Log a message with severity 'DEBUG' on the root logger. If the logger has
2146 no handlers, call basicConfig() to add a console handler with a pre-defined
2147 format.
2148 """
2149 if len(root.handlers) == 0:
2150 basicConfig()
2151 root.debug(msg, *args, **kwargs)
2152
2153def log(level, msg, *args, **kwargs):
2154 """

Callers

nothing calls this directly

Calls 2

basicConfigFunction · 0.85
debugMethod · 0.45

Tested by

no test coverage detected