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

Function getLogger

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

Return a logger with the specified name, creating it if necessary. If no name is specified, return the root logger.

(name=None)

Source from the content-addressed store, hash-verified

2072#---------------------------------------------------------------------------
2073
2074def getLogger(name=None):
2075 """
2076 Return a logger with the specified name, creating it if necessary.
2077
2078 If no name is specified, return the root logger.
2079 """
2080 if not name or isinstance(name, str) and name == root.name:
2081 return root
2082 return Logger.manager.getLogger(name)
2083
2084def critical(msg, *args, **kwargs):
2085 """

Callers 10

ntlmpool.pyFile · 0.90
segment.pyFile · 0.90
configuration.pyFile · 0.90
reporter.pyFile · 0.90
cache.pyFile · 0.90
install.pyFile · 0.90
auth.pyFile · 0.90
req_uninstall.pyFile · 0.90
__reduce__Method · 0.70
_showwarningFunction · 0.70

Calls 1

getLoggerMethod · 0.80

Tested by

no test coverage detected